Mercurial > hg > orthanc-stone
comparison OrthancStone/Resources/Orthanc/CMake/EmscriptenParameters.cmake @ 1923:f4cdcba8c32a
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Mar 2022 17:39:19 +0100 |
parents | fc6009c43bd9 |
children | 07964689cb0b |
comparison
equal
deleted
inserted
replaced
1922:b64a58e35f90 | 1923:f4cdcba8c32a |
---|---|
27 | 27 |
28 # If "-O3" is used (the default in "Release" mode), this results in a | 28 # If "-O3" is used (the default in "Release" mode), this results in a |
29 # too large memory consumption in "wasm-opt", at least in Emscripten | 29 # too large memory consumption in "wasm-opt", at least in Emscripten |
30 # 3.1.7, which ultimately crashes the compiler. So we force "-O2" | 30 # 3.1.7, which ultimately crashes the compiler. So we force "-O2" |
31 # (this also has the advantage of speeding up the build): | 31 # (this also has the advantage of speeding up the build): |
32 set(CMAKE_CXX_FLAGS_RELEASE "-O2") | 32 set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") |
33 | 33 |
34 # "DISABLE_EXCEPTION_CATCHING" is a "compile+link" option. HOWEVER, | 34 # "DISABLE_EXCEPTION_CATCHING" is a "compile+link" option. HOWEVER, |
35 # setting it inside "WASM_FLAGS" creates link errors, at least with | 35 # setting it inside "WASM_FLAGS" creates link errors, at least with |
36 # side modules. TODO: Understand why | 36 # side modules. TODO: Understand why |
37 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s DISABLE_EXCEPTION_CATCHING=0") | 37 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s DISABLE_EXCEPTION_CATCHING=0") |