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") if(CMAKE_SYSTEM_NAME MATCHES "Emscripten")
add_compile_options(
-fexceptions
)
add_link_options( add_link_options(
-fexceptions
-sALLOW_MEMORY_GROWTH=1 -sALLOW_MEMORY_GROWTH=1
-sASSERTIONS -sASSERTIONS
-sWASM_BIGINT -sWASM_BIGINT
-sENVIRONMENT=web -sENVIRONMENT=web
-sUSE_OFFSET_CONVERTER -sUSE_OFFSET_CONVERTER
-sEXCEPTION_CATCHING_ALLOWED=[..] #-sEXCEPTION_CATCHING_ALLOWED=[..]
-sEXIT_RUNTIME -sEXIT_RUNTIME
#-lnodefs.js -sNODERAWFS=1 #-lnodefs.js -sNODERAWFS=1
#-sASYNCIFY #-sASYNCIFY