diff --git a/dist-build/emscripten.sh b/dist-build/emscripten.sh index 63bb9979..92c63018 100755 --- a/dist-build/emscripten.sh +++ b/dist-build/emscripten.sh @@ -14,6 +14,7 @@ export LDFLAGS="${LDFLAGS} -s ASSERTIONS=0" export LDFLAGS="${LDFLAGS} -s AGGRESSIVE_VARIABLE_ELIMINATION=1 -s ALIASING_FUNCTION_POINTERS=1" export LDFLAGS="${LDFLAGS} -s DISABLE_EXCEPTION_CATCHING=1" export LDFLAGS="${LDFLAGS} -s ELIMINATE_DUPLICATE_FUNCTIONS=1" +export LDFLAGS="${LDFLAGS} -s NODEJS_CATCH_EXIT=0" export CFLAGS="-Os" echo