From f0fb772e6cd4b01066cf72267a69f59284eeb945 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 9 May 2018 12:50:57 +0200 Subject: Change debug optimization level to Og for GCC --- backend/ninja/Ninja.cpp | 2 +- src/CmakeModule.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp index 78ac68b..3befe76 100644 --- a/backend/ninja/Ninja.cpp +++ b/backend/ninja/Ninja.cpp @@ -631,7 +631,7 @@ namespace backend { case Compiler::GCC: { - optimizationFlags = "'-O0'"; + optimizationFlags = "'-Og'"; break; } case Compiler::MSVC: diff --git a/src/CmakeModule.cpp b/src/CmakeModule.cpp index 6313eb0..7f517e3 100644 --- a/src/CmakeModule.cpp +++ b/src/CmakeModule.cpp @@ -141,7 +141,7 @@ namespace sibs } } //cmd += TINYDIR_STRING(" -DCMAKE_SKIP_RPATH=\"1\""); - cmd += TINYDIR_STRING(" -DCMAKE_EXPORT_COMPILE_COMMANDS"); + cmd += TINYDIR_STRING(" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON"); cmd += TINYDIR_STRING(" \"-B"); cmd += buildPath; cmd += TINYDIR_STRING("\" \"-H"); -- cgit v1.2.3