aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-09 12:50:57 +0200
committerdec05eba <dec05eba@protonmail.com>2018-05-09 12:50:58 +0200
commitf0fb772e6cd4b01066cf72267a69f59284eeb945 (patch)
tree53770f9dd8170a3af04a60ee072a2c328b5f003f
parenta4e3a1191949449d1fda319771c725fdaa6f8b75 (diff)
Change debug optimization level to Og for GCC
-rw-r--r--backend/ninja/Ninja.cpp2
-rw-r--r--src/CmakeModule.cpp2
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");