optimisation: bite the bullet and use O0 by default for debug

Og optimisation eliminates too many expressions to be useful for fine
grained debugging so we should make Og the exception rather than O0
This commit is contained in:
Danny Robson 2018-09-05 13:17:50 +10:00
parent 23865396af
commit e82c8b7d4a

View File

@ -137,8 +137,8 @@ if (CMAKE_BUILD_TYPE MATCHES Debug)
# Don't make any commits that use -O0 by default. Instead, either add an
# argument that allows one to choose, or temporarily switch the lines
# below locally. -O0 is just too slow for computationally heavy projects.
append_compile_flag(-Og)
#append_compile_flag(-O0)
#append_compile_flag(-Og)
append_compile_flag(-O0)
append_compile_flag(-Werror)