forked from Mirrorlandia_minetest/minetest
Enable C++ stdlib assertions in debug flags
This commit is contained in:
parent
ec778508df
commit
4fbcc33ee0
@ -773,6 +773,10 @@ else()
|
||||
set(CMAKE_CXX_FLAGS_SEMIDEBUG "-g -O1 ${WARNING_FLAGS} ${OTHER_FLAGS}")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 ${WARNING_FLAGS} ${OTHER_FLAGS}")
|
||||
|
||||
if(UNIX)
|
||||
# enable assertions for libstdc++ or libc++
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wp,-D_GLIBCXX_ASSERTIONS -Wp,-D_LIBCPP_ENABLE_ASSERTIONS=1")
|
||||
endif()
|
||||
if(USE_GPROF)
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -pg")
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user