diff options
-rw-r--r-- | backend/ninja/Ninja.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp index e8fe16d..2482e9d 100644 --- a/backend/ninja/Ninja.cpp +++ b/backend/ninja/Ninja.cpp @@ -413,8 +413,7 @@ namespace backend case OPT_LEV_DEBUG: { return { - ninja::NinjaArg::createRaw("-Og"), - ninja::NinjaArg::createRaw("-g3"), + ninja::NinjaArg::createRaw("-O0 -g3"), ninja::NinjaArg::createRaw("-D_FORTIFY_SOURCE=2"), ninja::NinjaArg::createRaw("-D_GLIBCXX_ASSERTIONS"), ninja::NinjaArg::createRaw("-fasynchronous-unwind-tables"), @@ -424,7 +423,7 @@ namespace backend case OPT_LEV_RELEASE: { return { - ninja::NinjaArg::createRaw("-O3"), + ninja::NinjaArg::createRaw("-O2"), ninja::NinjaArg::createRaw("-g0"), ninja::NinjaArg::createRaw("-DNDEBUG") }; |