diff options
author | zlago | 2024-10-23 19:17:26 +0200 |
---|---|---|
committer | zlago | 2024-10-23 19:17:26 +0200 |
commit | b12606899c98d7fc7a120c2b79797b5c45283ad2 (patch) | |
tree | f210a037fee0f2346bae8a10d1edc1b445b4324f /build.sh | |
parent | af6acead62498bc49065ef828e388bcd511ce54d (diff) |
hacky save system
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'" |