aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-03-08 16:15:12 +0100
committerdec05eba <dec05eba@protonmail.com>2022-03-08 16:15:12 +0100
commit0b3bdff8fb8b7db80d1da8206e6f16d21fe30aa7 (patch)
tree5cb94f79462879490ff8ca094e774269a954437d
parentd20ab1b390c14ac794ca3438df7e1d9cf057ceed (diff)
Fix skip-compile option inverted
-rw-r--r--backend/ninja/Ninja.cpp2
-rw-r--r--src/CmakeModule.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp
index 7c0e9c0..0e03e20 100644
--- a/backend/ninja/Ninja.cpp
+++ b/backend/ninja/Ninja.cpp
@@ -1707,7 +1707,7 @@ namespace backend
if (fileOverwriteResult.isErr())
return fileOverwriteResult;
- if(config.skipCompile) {
+ if(!config.skipCompile) {
Result<bool> buildResult = compile(savePath);
if (!buildResult)
return buildResult;
diff --git a/src/CmakeModule.cpp b/src/CmakeModule.cpp
index 65e0c92..e3b3918 100644
--- a/src/CmakeModule.cpp
+++ b/src/CmakeModule.cpp
@@ -303,7 +303,7 @@ namespace sibs
return Result<bool>::Err(execResult);
//nprintf("Compiling cmake generated ninja file: %s\n", buildPath.c_str());
- if(config.skipCompile) {
+ if(!config.skipCompile) {
execResult = exec({ TINYDIR_STRING("ninja"), TINYDIR_STRING("-C"), buildPath }, true);
if(execResult.isOk())
{