Commit 556041c1 authored by Michael Droettboom's avatar Michael Droettboom Committed by GitHub

Merge pull request #195 from rth/trap-mode-clamp

Use "BINARYEN_TRAP_MODE='clamp'"
parents 3c03c56b a34d18c0
...@@ -64,6 +64,10 @@ jobs: ...@@ -64,6 +64,10 @@ jobs:
make make
ccache -s ccache -s
- run:
name: check-size
command: ls -lh build/
- save_cache: - save_cache:
paths: paths:
- ./emsdk/emsdk - ./emsdk/emsdk
......
...@@ -37,6 +37,7 @@ LDFLAGS=\ ...@@ -37,6 +37,7 @@ LDFLAGS=\
-std=c++14 \ -std=c++14 \
-lstdc++ \ -lstdc++ \
--memory-init-file 0 \ --memory-init-file 0 \
-s "BINARYEN_TRAP_MODE='clamp'" \
-s TEXTDECODER=0 \ -s TEXTDECODER=0 \
-s LZ4=1 -s LZ4=1
......
...@@ -21,4 +21,5 @@ export SIDE_LDFLAGS=\ ...@@ -21,4 +21,5 @@ export SIDE_LDFLAGS=\
-s EMULATE_FUNCTION_POINTER_CASTS=1 \ -s EMULATE_FUNCTION_POINTER_CASTS=1 \
-s SIDE_MODULE=1 \ -s SIDE_MODULE=1 \
-s WASM=1 \ -s WASM=1 \
-s "BINARYEN_TRAP_MODE='clamp'" \
--memory-init-file 0 --memory-init-file 0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment