optimisation: switch back to Og for debugging

O0 is catastrophically slow for some of our projects. Don't
unconditionally use O0.
This commit is contained in:
Danny Robson 2018-01-24 17:28:33 +11:00
parent 1bde0634b4
commit 630aa5de08

View File

@ -131,8 +131,8 @@ if (CMAKE_BUILD_TYPE MATCHES Debug)
add_definitions(-DENABLE_DEBUGGING) add_definitions(-DENABLE_DEBUGGING)
add_definitions(-D_GLIBCXX_DEBUG) add_definitions(-D_GLIBCXX_DEBUG)
#append_compile_flag(-Og) append_compile_flag(-Og)
append_compile_flag(-O0) #append_compile_flag(-O0)
append_compile_flag(-Werror) append_compile_flag(-Werror)
# this was protected for xmingw32, find out why # this was protected for xmingw32, find out why
append_compile_flag(-fstack-protector) append_compile_flag(-fstack-protector)