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 { stdenv.mkDerivation {
name = "triangle"; name = "triangle";
src = ./.; src = ./.;
nativeBuildInputs = [ clang ]; nativeBuildInputs = [ clang wasilibc ];
configurePhase = ""; configurePhase = "";
buildPhase = '' buildPhase = ''
clang \ clang \
--target=wasm32-unknown-wasi \ --target=wasm32-unknown-wasi \
--sysroot ${pkgsCross.wasi32.wasilibc} \
-O3 \ -O3 \
-flto \ -flto \
-nostdlib \ -nostdlib \