cmake: emscripten: Enable assertions in debug builds

This commit is contained in:
Sebastian Krzyszkowiak 2020-05-09 03:56:26 +02:00
parent 31de1a7d08
commit 50c8049c13
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -119,8 +119,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")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g3")
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")
else()
if(MAEMO5 AND SANITIZERS_ARGS)
message(STATUS "Sanitizers unavailable under Maemo, disabling...")