Skip to content

Commit 775d8bc

Browse files
committed
chore: update pugixml, emsdk
Signed-off-by: Tuan Anh Tran <me@tuananh.org>
1 parent 8fba200 commit 775d8bc

5 files changed

Lines changed: 49 additions & 52 deletions

File tree

build.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
set -e
3+
set -eux
44

55
export 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
)

0 commit comments

Comments
 (0)