From 1c6ab0b07f18f2c6919ebb45c40da1e00b7ecf83 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 26 Oct 2018 17:25:43 +0200 Subject: Replace Og with O0 -g3, compatible with emscripten --- backend/ninja/Ninja.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'backend') 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") }; -- cgit v1.2.3