diff options
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build.sh b/build.sh index 60ad14c..c85c145 100755 --- a/build.sh +++ b/build.sh @@ -14,7 +14,10 @@ case $1 in NS=ub CFLAGS='-g -Og -fsanitize=undefined -lubsan' make ;; emscripten) - NS=em EXTENSION=html CC='/usr/lib/emscripten/emcc' CFLAGS='-g2 -O1 -sUSE_SDL=2 -sUSE_ZLIB' LDFLAGS='-sASYNCIFY --embed-file out/assets.res@./assets.res' make + NS=em EXTENSION=js CC='/usr/lib/emscripten/emcc' CFLAGS='-g2 -O2 -sUSE_SDL=2 -sUSE_ZLIB' LDFLAGS='-sASYNCIFY --embed-file out/assets.res@./assets.res' make + ;; + em-dbg) + NS=em-dbg EXTENSION=html CC='/usr/lib/emscripten/emcc' CFLAGS='-g2 -O0 -sUSE_SDL=2 -sUSE_ZLIB --memoryprofiler' LDFLAGS='-sASYNCIFY -lidbfs.js --embed-file out/assets.res@./assets.res' make ;; *) echo >&2 "dont know how to build '$1'" |