From 0b3bdff8fb8b7db80d1da8206e6f16d21fe30aa7 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 8 Mar 2022 16:15:12 +0100 Subject: Fix skip-compile option inverted --- backend/ninja/Ninja.cpp | 2 +- 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 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::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()) { -- cgit v1.2.3