aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/ninja/Ninja.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp
index c72c99f..45fb9cb 100644
--- a/backend/ninja/Ninja.cpp
+++ b/backend/ninja/Ninja.cpp
@@ -995,20 +995,17 @@ namespace backend
buildPath += TINYDIR_STRING("/sibs-build/release");
break;
}
+
Result<bool> buildFileResult = ninja.build(sibsTestConfig, buildPath.c_str());
if (!buildFileResult)
return buildFileResult;
-
- Result<bool> buildResult = ninja.compile(buildPath.c_str());
- if (!buildResult)
- return buildResult;
// Convenient to have project setup to tests as well
if(config.isMainProject())
{
- buildResult = buildCompilationDatabase(buildPath.c_str());
- if(!buildResult)
- return buildResult;
+ buildFileResult = buildCompilationDatabase(buildPath.c_str());
+ if(!buildFileResult)
+ return buildFileResult;
}
FileString testExecutableName = buildPath;