Compare commits
No commits in common. "test-branch" and "main" have entirely different histories.
test-branc
...
main
1 changed files with 2 additions and 3 deletions
5
wasm.nix
5
wasm.nix
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue