changeset 1923:f4cdcba8c32a

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 Mar 2022 17:39:19 +0100
parents b64a58e35f90
children f4050908c6bc
files OrthancStone/Resources/Orthanc/CMake/EmscriptenParameters.cmake
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancStone/Resources/Orthanc/CMake/EmscriptenParameters.cmake	Tue Mar 22 14:55:52 2022 +0100
+++ b/OrthancStone/Resources/Orthanc/CMake/EmscriptenParameters.cmake	Tue Mar 22 17:39:19 2022 +0100
@@ -29,7 +29,7 @@
 # too large memory consumption in "wasm-opt", at least in Emscripten
 # 3.1.7, which ultimately crashes the compiler. So we force "-O2"
 # (this also has the advantage of speeding up the build):
-set(CMAKE_CXX_FLAGS_RELEASE "-O2")
+set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")
 
 # "DISABLE_EXCEPTION_CATCHING" is a "compile+link" option. HOWEVER,
 # setting it inside "WASM_FLAGS" creates link errors, at least with