optimsation: prefer -O0 over -Og
Og optimises out too many variables to be useful in a large percentages of the cases. Instead use O0. If we need to revert to Og we'll instead introduce a new flag.
This commit is contained in:
parent
bd4b8328c2
commit
6576747031
@ -136,7 +136,8 @@ if (CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
add_definitions(-DENABLE_DEBUGGING)
|
||||
add_definitions(-D_GLIBCXX_DEBUG)
|
||||
|
||||
append_compile_flag(-Og)
|
||||
#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