diff --git a/Makefile b/Makefile index cbcf101..7df66d7 100644 --- a/Makefile +++ b/Makefile @@ -48,6 +48,7 @@ # FLAGS += -s BINARYEN_ASYNC_COMPILATION=0 # FLAGS += -s BINARYEN_METHOD=\"native-wasm,asmjs\" # FLAGS += -s BINARYEN_METHOD=\"interpret-asm2wasm,asmjs\" +FLAGS += -s BINARYEN_TRAP_MODE=\"clamp\" # FLAGS += -s TOTAL_MEMORY=4194304 # FLAGS += -s ALLOW_MEMORY_GROWTH=1 FLAGS += -s EMBIND_STD_STRING_IS_UTF8=1