wasm #1

Open
michael wants to merge 1 commit from test-branch into main
Showing only changes of commit 4eb6142cd1 - Show all commits

View file

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