Skip to content

Commit 550303f

Browse files
committed
build(pkgs/emscripten): Temporary disable exta cache variants until binaryen >= v119 is in Nixpkgs
1 parent 858636f commit 550303f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/all-packages.nix

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,16 @@
115115
circom = callPackage ./circom/default.nix {craneLib = craneLib-stable;};
116116
circ = callPackage ./circ/default.nix {craneLib = craneLib-stable;};
117117

118-
emscripten = pkgs.emscripten.overrideAttrs (old: {
118+
emscripten = pkgs.emscripten.overrideAttrs (_old: {
119119
postInstall = ''
120120
pushd $TMPDIR
121-
echo 'int __main_argc_argv() { return 42; }' >test.c
121+
echo 'int __main_argc_argv( int a, int b ) { return 42; }' >test.c
122122
for MEM in "-s ALLOW_MEMORY_GROWTH" ""; do
123123
for LTO in -flto ""; do
124-
for OPT in "-O2" "-O3" "-Oz" "-Os"; do
124+
# FIXME: change to the following, once binaryen is updated to
125+
# >= v119 in Nixpkgs:
126+
# for OPT in "-O2" "-O3" "-Oz" "-Os"; do
127+
for OPT in "-O2"; do
125128
$out/bin/emcc $MEM $LTO $OPT -s WASM=1 -s STANDALONE_WASM test.c
126129
done
127130
done

0 commit comments

Comments
 (0)