Enable emscripten assertions only for debug builds

This commit is contained in:
momo5502
2025-06-29 20:54:21 +02:00
parent de88505156
commit 9abdae11cb

View File

@@ -120,7 +120,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "Emscripten")
add_link_options(
-fexceptions
-sALLOW_MEMORY_GROWTH=1
-sASSERTIONS
$<$<CONFIG:Debug>:-sASSERTIONS>
-sWASM_BIGINT
-sUSE_OFFSET_CONVERTER
-sMAXIMUM_MEMORY=4gb