From 2065ecbe1ad951dc7263f76040b085019423ada9 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 8 Sep 2016 11:38:29 -0700 Subject: use -O2 in debug wasm.js/binaryen.js, as they are so large without js opts they are too unwieldy --- build-js.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build-js.sh') diff --git a/build-js.sh b/build-js.sh index d4951402f..b346e14f4 100755 --- a/build-js.sh +++ b/build-js.sh @@ -43,7 +43,7 @@ EMCC_ARGS="$EMCC_ARGS -s DEMANGLE_SUPPORT=1" OUT_FILE_SUFFIX= if [ "$1" == "-g" ]; then - EMCC_ARGS="$EMCC_ARGS -O0" + EMCC_ARGS="$EMCC_ARGS -O2" # need emcc js opts to be decently fast EMCC_ARGS="$EMCC_ARGS --llvm-opts 0 --llvm-lto 0" EMCC_ARGS="$EMCC_ARGS -profiling" OUT_FILE_SUFFIX=-g -- cgit v1.2.3