Add LEGALIZE_JS_FFI and BINARYEN_TRAP_MODE for efficient 64-bit operations
This commit is contained in:
parent
5b8296b0fd
commit
c46a6f310a
4
Makefile
4
Makefile
|
@ -140,6 +140,8 @@ build/v86.wasm: src/native/*.c src/native/*.h
|
||||||
--llvm-opts 3 \
|
--llvm-opts 3 \
|
||||||
-O3 \
|
-O3 \
|
||||||
-g4 \
|
-g4 \
|
||||||
|
-s LEGALIZE_JS_FFI=0 \
|
||||||
|
-s "BINARYEN_TRAP_MODE='allow'" \
|
||||||
-s WASM=1 -s SIDE_MODULE=1 -o build/v86.wasm
|
-s WASM=1 -s SIDE_MODULE=1 -o build/v86.wasm
|
||||||
ls -lh build/v86.wasm
|
ls -lh build/v86.wasm
|
||||||
|
|
||||||
|
@ -151,6 +153,8 @@ build/v86-debug.wasm: src/native/*.c src/native/*.h
|
||||||
-fwrapv \
|
-fwrapv \
|
||||||
-Os \
|
-Os \
|
||||||
-g4 \
|
-g4 \
|
||||||
|
-s LEGALIZE_JS_FFI=0 \
|
||||||
|
-s "BINARYEN_TRAP_MODE='allow'" \
|
||||||
-s WASM=1 -s SIDE_MODULE=1 -o build/v86-debug.wasm
|
-s WASM=1 -s SIDE_MODULE=1 -o build/v86-debug.wasm
|
||||||
ls -lh build/v86-debug.wasm
|
ls -lh build/v86-debug.wasm
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue