Skip to content

Commit

Permalink
Merge pull request #12931 from fwcd/wasm-assertions
Browse files Browse the repository at this point in the history
CMakeLists: Add `WASM_ASSERTIONS` option
  • Loading branch information
daschuer authored Mar 9, 2024
2 parents 4d6be23 + 9e47cb3 commit 3c1a619
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2802,6 +2802,13 @@ if(DEBUG_ASSERTIONS_FATAL)
endif()
endif()

if(EMSCRIPTEN)
option(WASM_ASSERTIONS "Enable additional checks when targeting Emscripten/WebAssembly" OFF)
if(WASM_ASSERTIONS)
target_link_options(mixxx-lib PUBLIC -sASSERTIONS)
endif()
endif()

target_compile_definitions(mixxx-lib PUBLIC QT_TABLET_SUPPORT QT_USE_QSTRINGBUILDER)
is_static_library(Qt_IS_STATIC Qt${QT_VERSION_MAJOR}::Core)
if(Qt_IS_STATIC)
Expand Down

0 comments on commit 3c1a619

Please sign in to comment.