mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-04 16:28:00 +01:00
cmake: Enable assertions for Emscripten Debug builds
This commit is contained in:
parent
f927cb94e9
commit
e5ba177910
1 changed files with 2 additions and 2 deletions
|
@ -120,8 +120,8 @@ if (NOT LIBSUPERDERPY_CONFIG_INCLUDED)
|
|||
message(STATUS "Sanitizers unavailable under Emscripten, disabling...")
|
||||
set(SANITIZERS_ARGS "")
|
||||
endif()
|
||||
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g3 -s ASSERTIONS=1")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g3 -s ASSERTIONS=1")
|
||||
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g3 -s ASSERTIONS=2 -s SAFE_HEAP=1")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g3 -s ASSERTIONS=2 -s SAFE_HEAP=1")
|
||||
else()
|
||||
if(MAEMO5 AND SANITIZERS_ARGS)
|
||||
message(STATUS "Sanitizers unavailable on Maemo, disabling...")
|
||||
|
|
Loading…
Reference in a new issue