Compare commits

..

No commits in common. "test-branch" and "main" have entirely different histories.

View file

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