aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-05-23 15:27:04 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-05-23 15:27:04 +0800
commite963394eb4d7497ece68218317a8690e1453c200 (patch)
tree95a0e4bae2f90c8a13a18449cc84d3125a0fc3be
parenta675d1c5c7f690d8d4966dc0f96a4d6a50435af5 (diff)
downloaddexon-bls-e963394eb4d7497ece68218317a8690e1453c200.tar
dexon-bls-e963394eb4d7497ece68218317a8690e1453c200.tar.gz
dexon-bls-e963394eb4d7497ece68218317a8690e1453c200.tar.bz2
dexon-bls-e963394eb4d7497ece68218317a8690e1453c200.tar.lz
dexon-bls-e963394eb4d7497ece68218317a8690e1453c200.tar.xz
dexon-bls-e963394eb4d7497ece68218317a8690e1453c200.tar.zst
dexon-bls-e963394eb4d7497ece68218317a8690e1453c200.zip
change emcc option
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1847b0b..019ae3a 100644
--- a/Makefile
+++ b/Makefile
@@ -90,11 +90,13 @@ test_go: ffi/go/bls/bls.go ffi/go/bls/bls_test.go $(BLS384_SLIB)
EMCC_OPT=-I./include -I./src -I../cybozulib/include -I../mcl/include -I./
EMCC_OPT+=-O3 -DNDEBUG -DMCLBN_FP_UNIT_SIZE=6 -DMCL_MAX_BIT_SIZE=384 -Os
-EMCC_OPT+=-s WASM=1 -s DISABLE_EXCEPTION_CATCHING=0 -s NO_EXIT_RUNTIME=1 -s MODULARIZE=1
+EMCC_OPT+=-s WASM=1 -s DISABLE_EXCEPTION_CATCHING=1 -s NO_EXIT_RUNTIME=1 -s MODULARIZE=1
+EMCC_OPT+=-DCYBOZU_MINIMUM_EXCEPTION
+EMCC_OPT+=-s ABORTING_MALLOC=0
JS_DEP=src/bls_c.cpp ../mcl/src/fp.cpp Makefile
../bls-wasm/bls_c.js: $(JS_DEP)
- emcc -o $@ src/bls_c.cpp ../mcl/src/fp.cpp $(EMCC_OPT) -DCYBOZU_MINIMUM_EXCEPTION
+ emcc -o $@ src/bls_c.cpp ../mcl/src/fp.cpp $(EMCC_OPT)
bls-wasm:
$(MAKE) ../bls-wasm/bls_c.js