Enable GLIBCXX_ASSERTIONS in make develop

Not sure it's very portable, but this is only the dev config
This commit is contained in:
ISSOtm
2022-10-11 21:43:37 +02:00
committed by Eldred Habert
parent 12ba057b4f
commit 28737d5778
2 changed files with 2 additions and 0 deletions

View File

@@ -52,6 +52,7 @@ else()
-fsanitize=alignment -fsanitize=null -fsanitize=address)
add_compile_options(${SAN_FLAGS})
add_link_options(${SAN_FLAGS})
add_definitions(-D_GLIBCXX_ASSERTIONS)
# A non-zero optimization level is desired in debug mode, but allow overriding it nonetheless
# TODO: this overrides anything previously set... that's a bit sloppy!
set(CMAKE_C_FLAGS_DEBUG "-g -Og -fno-omit-frame-pointer -fno-optimize-sibling-calls" CACHE STRING "" FORCE)