Browse Source

Added BINARYEN_TRAP_MODE for faster wasm.

Mark Sibly 8 years ago
parent
commit
41c21e26a4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mx2cc/buildproduct.monkey2

+ 1 - 1
src/mx2cc/buildproduct.monkey2

@@ -547,7 +547,7 @@ Class GccBuildProduct Extends BuildProduct
 			
 			
 			cmd+=" --preload-file ~q"+assetsDir+"@/assets~q"
 			cmd+=" --preload-file ~q"+assetsDir+"@/assets~q"
 			
 			
-			If opts.wasm cmd+=" -s BINARYEN=1"
+			If opts.wasm cmd+=" -s BINARYEN=1 -s BINARYEN_TRAP_MODE='allow'"
 		End
 		End
 		
 		
 		If opts.verbose>=0 Print "Linking "+outputFile+"..."
 		If opts.verbose>=0 Print "Linking "+outputFile+"..."