Modify wasm Makefile

This commit is contained in:
Stephen Seo 2023-02-22 14:28:32 +09:00
parent 1fa6e1c8b2
commit 6d95f5b00e

View file

@ -9,10 +9,9 @@ ld45.html: src/main.c ../target/wasm32-unknown-emscripten/release/libld45_lib.a
-sTOTAL_MEMORY=1024MB \ -sTOTAL_MEMORY=1024MB \
-sALLOW_MEMORY_GROWTH=1 \ -sALLOW_MEMORY_GROWTH=1 \
-O2 \ -O2 \
-fsanitize=address \
-sEXPORTED_FUNCTIONS="['_malloc', '_main']" \ -sEXPORTED_FUNCTIONS="['_malloc', '_main']" \
-sEXPORTED_RUNTIME_METHODS=ccall,cwrap \ -sEXPORTED_RUNTIME_METHODS=ccall,cwrap \
-fsanitize=address \
-sWARN_UNALIGNED=1 \
--preload-file ../static src/main.c --preload-file ../static src/main.c
ln -sf ld45.html index.html ln -sf ld45.html index.html