From b12606899c98d7fc7a120c2b79797b5c45283ad2 Mon Sep 17 00:00:00 2001 From: zlago Date: Wed, 23 Oct 2024 19:17:26 +0200 Subject: hacky save system --- build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build.sh') 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'" -- cgit 1.4.1-2-gfad0