wasm #1

Open
michael wants to merge 1 commit from test-branch into main

View file

@ -1,16 +1,17 @@
{ stdenv, clang, wasilibc }: { stdenv, clang, pkgsCross }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "triangle"; name = "triangle";
src = ./.; src = ./.;
nativeBuildInputs = [ clang wasilibc ]; nativeBuildInputs = [ clang ];
configurePhase = ""; configurePhase = "";
buildPhase = '' buildPhase = ''
clang \ clang \
--target=wasm32-unknown-wasi \ --target=wasm32-unknown-wasi \
--sysroot ${pkgsCross.wasi32.wasilibc} \
-O3 \ -O3 \
-flto \ -flto \
-nostdlib \ -nostdlib \