From 9333730db8b0293cccee31b5b5c7045ed36fb9f9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 5 Apr 2021 07:32:28 +0200 Subject: Oops.. optimizations disabled by default in release mode --- .gitmodules | 2 +- README.md | 1 + backend/ninja/Ninja.cpp | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitmodules b/.gitmodules index b1e924d..03baf03 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "depends/libninja"] path = depends/libninja - url = https://git.dec05eba.com/libninja + url = git://git.dec05eba.com/libninja diff --git a/README.md b/README.md index 4b16ecc..c4f7a95 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ Simple Build System for Native Languages Commands: build Build a project that contains a project.conf file + run Build and run a project that contains a project.conf file new Create a new project init Initialize project in an existing directory test Build and run tests for a sibs project diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp index 34fe6e7..ace95d9 100644 --- a/backend/ninja/Ninja.cpp +++ b/backend/ninja/Ninja.cpp @@ -459,9 +459,9 @@ namespace backend case OPT_LEV_RELEASE: { if(config.use_flto) - return { ninja::NinjaArg::createRaw("-O3 -g0 -DNDEBUG -flto") }; + return { ninja::NinjaArg::createRaw("-O3 -g0 -DNDEBUG -flto") }; else - return {}; + return { ninja::NinjaArg::createRaw("-O3 -g0 -DNDEBUG") }; } } break; -- cgit v1.2.3