Skip to content

Commit 05a4dd4

Browse files
Remove address sanitation (emscripten-forge#42)
Co-authored-by: Marten Richter <[email protected]>
1 parent 42000a6 commit 05a4dd4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ npm-debug.log
55
# Build output directories
66
lib/
77
libs/
8+
tsconfig.tsbuildinfo
89

910
# The wasm-unpack-env environment
1011
wasm-unpack-env/

build_wasm.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ if true; then
6262
--yes \
6363
zlib bzip2 zstd libiconv libarchive "emscripten-abi=3.1.45"
6464
fi
65-
65+
6666
export PREFIX=$PREFIX_DIR
6767
export CPPFLAGS="-I$PREFIX/include"
6868
export LDFLAGS="-L$PREFIX/lib"
@@ -84,10 +84,10 @@ emcc unpack.c -o $WASM_LIB/unpack.js \
8484
$CPPFLAGS $LDFLAGS \
8585
${PREFIX}/lib/libarchive.a \
8686
${PREFIX}/lib/libz.a ${PREFIX}/lib/libbz2.a ${PREFIX}/lib/libzstd.a ${PREFIX}/lib/libiconv.a\
87-
-s MODULARIZE=1 -s WASM=1 -O3 -s ALLOW_MEMORY_GROWTH=1 -fsanitize=address \
87+
-s MODULARIZE=1 -s WASM=1 -O3 -s ALLOW_MEMORY_GROWTH=1 \
8888
-s INITIAL_MEMORY=128MB \
8989
-s ENVIRONMENT=web \
9090
-s EXPORTED_RUNTIME_METHODS='["ccall", "cwrap", "getValue", "UTF8ToString", "wasmMemory"]' \
9191
-s EXPORTED_FUNCTIONS="['_extract', '_free_extracted_archive', '_malloc', '_free']"
9292

93-
echo "Build completed successfully!"
93+
echo "Build completed successfully!"

0 commit comments

Comments
 (0)