Commit 43572373 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

[t:4814] never ever pass -DNDEBUG

git-svn-id: file:///svn/toku/tokudb@43406 c7de825b-a66e-492c-adef-691d508d4ae1
parent f9e6f808
......@@ -79,8 +79,8 @@ set_cflags_if_supported(
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g3 -ggdb -O0")
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG FORTIFY_SOURCE=2)
## set extra release flags
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3")
## set extra release flags, we overwrite this because the default passes -DNDEBUG and we don't want that
set(CMAKE_C_FLAGS_RELEASE "-O3")
## check how to do inter-procedural optimization
check_c_compiler_flag(-flto HAVE_CC_FLAG_FLTO)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment