diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-03-08 16:15:12 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-03-08 16:15:12 +0100 |
commit | 0b3bdff8fb8b7db80d1da8206e6f16d21fe30aa7 (patch) | |
tree | 5cb94f79462879490ff8ca094e774269a954437d | |
parent | d20ab1b390c14ac794ca3438df7e1d9cf057ceed (diff) |
Fix skip-compile option inverted
-rw-r--r-- | backend/ninja/Ninja.cpp | 2 | ||||
-rw-r--r-- | src/CmakeModule.cpp | 2 |
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()) { |