Compare commits

..

1 commit

Author SHA1 Message Date
4eb6142cd1 wasm 2023-11-20 21:31:16 -06:00

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 \