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

Use "BINARYEN_TRAP_MODE='clamp'"
This commit is contained in:
Michael Droettboom 2018-09-27 10:34:34 -04:00 committed by GitHub
commit 556041c1e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -64,6 +64,10 @@ jobs:
make
ccache -s
- run:
name: check-size
command: ls -lh build/
- save_cache:
paths:
- ./emsdk/emsdk

View File

@ -37,6 +37,7 @@ LDFLAGS=\
-std=c++14 \
-lstdc++ \
--memory-init-file 0 \
-s "BINARYEN_TRAP_MODE='clamp'" \
-s TEXTDECODER=0 \
-s LZ4=1

View File

@ -21,4 +21,5 @@ export SIDE_LDFLAGS=\
-s EMULATE_FUNCTION_POINTER_CASTS=1 \
-s SIDE_MODULE=1 \
-s WASM=1 \
-s "BINARYEN_TRAP_MODE='clamp'" \
--memory-init-file 0