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 {
|
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 \
|
||||||
|
|
Loading…
Reference in a new issue