emscripten : fix compile warnings + update ggwave.js

This commit is contained in:
Georgi Gerganov
2021-11-27 13:17:28 +02:00
parent 1fedf68a41
commit 71aabb3fc3
3 changed files with 7 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@@ -7,11 +7,14 @@ if (GGWAVE_SUPPORT_SDL2)
if (EMSCRIPTEN)
set(CMAKE_CXX_FLAGS " \
-s USE_SDL=2 \
-s DISABLE_EXCEPTION_CATCHING=0 \
")
set(CMAKE_CXX_LINK_FALGS " \
--bind \
-s TOTAL_MEMORY=67108864 \
-s USE_SDL=2 \
-s ASSERTIONS=1 \
-s DISABLE_EXCEPTION_CATCHING=0 \
-s 'EXTRA_EXPORTED_RUNTIME_METHODS=[\"writeArrayToMemory\"]' \
")