optimisation: use Og instead of O0 by default

O0 is hellishly slow, this is every so slightly less so.
This commit is contained in:
Danny Robson 2017-07-04 16:20:31 +10:00
parent a1d3200fde
commit 8a83b07ea0

View File

@ -137,7 +137,7 @@ 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(-O0) append_compile_flag(-Og)
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)