File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- set -e
3+ set -eux
44
55export OPTIMIZE=" -O3"
66
@@ -12,10 +12,6 @@ cp src/pugiconfig.hpp node_modules/pugixml/src/pugiconfig.hpp
1212 emcc \
1313 --bind \
1414 ${OPTIMIZE} \
15- -s WASM=1 \
16- -s ALLOW_MEMORY_GROWTH=1 \
17- -s MODULARIZE=1 \
18- -s ASSERTIONS=0 \
1915 -DNDEBUG \
2016 -s ' EXPORT_NAME="pugixml"' \
2117 -I node_modules/pugixml/src \
@@ -28,19 +24,14 @@ echo "2/2 Compiling camaro wasm bindings"
2824 emcc \
2925 --bind \
3026 ${OPTIMIZE} \
31- -s ALLOW_MEMORY_GROWTH=1 \
32- -s MODULARIZE=1 \
33- -s ASSERTIONS=0 \
3427 -DNDEBUG \
3528 -s ' MALLOC="emmalloc"' \
36- -s ' EXPORT_NAME="camaro"' \
3729 -I node_modules/pugixml/src \
3830 -I node_modules/json/single_include/nlohmann \
3931 -o dist/camaro.js \
4032 -Wno-deprecated-register \
4133 -Wno-writable-strings \
4234 --closure 1 \
43- --llvm-lto 1 \
4435 dist/* .o \
4536 src/camaro.cpp
4637)
You can’t perform that action at this time.
0 commit comments