diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-10-26 17:25:43 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:33 +0200 |
commit | 1c6ab0b07f18f2c6919ebb45c40da1e00b7ecf83 (patch) | |
tree | 890ea0c540331ad86b2c4d76710601c88fe52399 /backend | |
parent | 010bd141dd975a30fdeac1bc044cdc076a004475 (diff) |
Replace Og with O0 -g3, compatible with emscripten
Diffstat (limited to 'backend')
-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") }; |