From 630aa5de08a5fa07852001e1e6a53f6dd7a8885b Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 24 Jan 2018 17:28:33 +1100 Subject: [PATCH] optimisation: switch back to Og for debugging O0 is catastrophically slow for some of our projects. Don't unconditionally use O0. --- nc_optimisation.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nc_optimisation.cmake b/nc_optimisation.cmake index 3c7117d..b42cd79 100644 --- a/nc_optimisation.cmake +++ b/nc_optimisation.cmake @@ -131,8 +131,8 @@ if (CMAKE_BUILD_TYPE MATCHES Debug) add_definitions(-DENABLE_DEBUGGING) add_definitions(-D_GLIBCXX_DEBUG) - #append_compile_flag(-Og) - append_compile_flag(-O0) + 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)