Mercurial > hg > orthanc-stone
comparison OrthancStone/Resources/Orthanc/CMake/EmscriptenParameters.cmake @ 1917:9c52c0376ad7
improved definition of -Wno-unused-command-line-argument
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Mar 2022 10:29:47 +0100 |
parents | 7053b8a0aaec |
children | fc6009c43bd9 |
comparison
equal
deleted
inserted
replaced
1916:bd527bbc34df | 1917:9c52c0376ad7 |
---|---|
27 | 27 |
28 # "DISABLE_EXCEPTION_CATCHING" is a "compile+link" option. HOWEVER, | 28 # "DISABLE_EXCEPTION_CATCHING" is a "compile+link" option. HOWEVER, |
29 # setting it inside "WASM_FLAGS" creates link errors, at least with | 29 # setting it inside "WASM_FLAGS" creates link errors, at least with |
30 # side modules. TODO: Understand why | 30 # side modules. TODO: Understand why |
31 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s DISABLE_EXCEPTION_CATCHING=0") | 31 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s DISABLE_EXCEPTION_CATCHING=0") |
32 | |
33 # "-Wno-unused-command-line-argument" is used to avoid annoying | |
34 # warnings about setting WASM, FETCH and ASSERTIONS, which was | |
35 # required for earlier versions of emsdk: | |
36 # https://groups.google.com/g/emscripten-discuss/c/VX4enWfadUE | |
37 set(WASM_FLAGS "${WASM_FLAGS} -Wno-unused-command-line-argument") | |
38 | |
32 #set(WASM_FLAGS "${WASM_FLAGS} -s DISABLE_EXCEPTION_CATCHING=0") | 39 #set(WASM_FLAGS "${WASM_FLAGS} -s DISABLE_EXCEPTION_CATCHING=0") |
33 | 40 |
34 if (EMSCRIPTEN_TARGET_MODE STREQUAL "wasm") | 41 if (EMSCRIPTEN_TARGET_MODE STREQUAL "wasm") |
35 # WebAssembly | 42 # WebAssembly |
36 set(WASM_FLAGS "${WASM_FLAGS} -s WASM=1") | 43 set(WASM_FLAGS "${WASM_FLAGS} -s WASM=1") |