From 8a83b07ea0b25202d8b221121d180bc1eb46069e Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 4 Jul 2017 16:20:31 +1000 Subject: [PATCH] optimisation: use Og instead of O0 by default O0 is hellishly slow, this is every so slightly less so. --- nc_optimisation.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nc_optimisation.cmake b/nc_optimisation.cmake index 119bb4d..4502874 100644 --- a/nc_optimisation.cmake +++ b/nc_optimisation.cmake @@ -137,7 +137,7 @@ if (CMAKE_BUILD_TYPE MATCHES Debug) add_definitions(-DENABLE_DEBUGGING) add_definitions(-D_GLIBCXX_DEBUG) - append_compile_flag(-O0) + append_compile_flag(-Og) append_compile_flag(-Werror) # this was protected for xmingw32, find out why append_compile_flag(-fstack-protector)