aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-04-05 07:32:28 +0200
committerdec05eba <dec05eba@protonmail.com>2021-04-05 07:34:13 +0200
commit9333730db8b0293cccee31b5b5c7045ed36fb9f9 (patch)
tree30a0f710ecf16139e217f043a8f052dfd3d10bcb
parente59d08b33daca53a53e44e0705db3e5d2fcc2817 (diff)
Oops.. optimizations disabled by default in release mode
-rw-r--r--.gitmodules2
-rw-r--r--README.md1
-rw-r--r--backend/ninja/Ninja.cpp4
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;