File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments