optimisastion: add explanatory note for optimisation flags
This commit is contained in:
parent
630aa5de08
commit
712fcdf455
@ -131,8 +131,12 @@ if (CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
add_definitions(-DENABLE_DEBUGGING)
|
||||
add_definitions(-D_GLIBCXX_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(-Werror)
|
||||
# this was protected for xmingw32, find out why
|
||||
append_compile_flag(-fstack-protector)
|
||||
|
Loading…
Reference in New Issue
Block a user