diff options
Diffstat (limited to 'backend/ninja')
-rw-r--r-- | backend/ninja/Ninja.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp index c329c23..9ec12d3 100644 --- a/backend/ninja/Ninja.cpp +++ b/backend/ninja/Ninja.cpp @@ -1174,6 +1174,11 @@ namespace backend ninja::NinjaArg::createRaw("-lubsan") }); } + else if(config.getOptimizationLevel() == OPT_LEV_RELEASE) + { + // Strip binary + buildExeArgs.push_back(ninja::NinjaArg::createRaw("-s")); + } // TODO: Add flag to disable -ldl and -lm (dlopen, dlclose, floor, max, ...) #if OS_TYPE == OS_TYPE_OPENBSD |