aboutsummaryrefslogtreecommitdiff
path: root/backend/ninja
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-26 17:25:43 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:33 +0200
commit1c6ab0b07f18f2c6919ebb45c40da1e00b7ecf83 (patch)
tree890ea0c540331ad86b2c4d76710601c88fe52399 /backend/ninja
parent010bd141dd975a30fdeac1bc044cdc076a004475 (diff)
Replace Og with O0 -g3, compatible with emscripten
Diffstat (limited to 'backend/ninja')
-rw-r--r--backend/ninja/Ninja.cpp5
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")
};