Mercurial > hg > orthanc
changeset 4952:15ce7af202f1
fix EmscriptenParameters.cmake
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Mar 2022 10:20:25 +0100 |
parents | e100fd9db29b |
children | 60cb4b379485 |
files | OrthancFramework/Resources/CMake/EmscriptenParameters.cmake |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancFramework/Resources/CMake/EmscriptenParameters.cmake Tue Mar 22 08:48:46 2022 +0100 +++ b/OrthancFramework/Resources/CMake/EmscriptenParameters.cmake Tue Mar 22 10:20:25 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