Fix exceptions

This commit is contained in:
momo5502
2025-04-18 12:40:26 +02:00
parent fe4ce3d379
commit c866380fe0

View File

@@ -89,13 +89,18 @@ endif()
##########################################
if(CMAKE_SYSTEM_NAME MATCHES "Emscripten")
add_compile_options(
-fexceptions
)
add_link_options(
-fexceptions
-sALLOW_MEMORY_GROWTH=1
-sASSERTIONS
-sWASM_BIGINT
-sENVIRONMENT=web
-sUSE_OFFSET_CONVERTER
-sEXCEPTION_CATCHING_ALLOWED=[..]
#-sEXCEPTION_CATCHING_ALLOWED=[..]
-sEXIT_RUNTIME
#-lnodefs.js -sNODERAWFS=1
#-sASYNCIFY