From 9abdae11cb20059cc44c682e6ef536a29e0e3aef Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sun, 29 Jun 2025 20:54:21 +0200 Subject: [PATCH] Enable emscripten assertions only for debug builds --- cmake/compiler-env.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/compiler-env.cmake b/cmake/compiler-env.cmake index d6d1739e..cb7da226 100644 --- a/cmake/compiler-env.cmake +++ b/cmake/compiler-env.cmake @@ -120,7 +120,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "Emscripten") add_link_options( -fexceptions -sALLOW_MEMORY_GROWTH=1 - -sASSERTIONS + $<$:-sASSERTIONS> -sWASM_BIGINT -sUSE_OFFSET_CONVERTER -sMAXIMUM_MEMORY=4gb