diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-06-13 13:30:13 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-06-13 15:55:41 +0200 |
commit | d4861d94804f6d4b5750ed0c1444502c21fd3a0f (patch) | |
tree | 99be1fa1b419b238ed8ad6305fedf92fcb15dcc1 /src/buildtool/main/main.cpp | |
parent | fe831b304c445f75fce9c4454678f69a749b8bce (diff) | |
download | justbuild-d4861d94804f6d4b5750ed0c1444502c21fd3a0f.tar.gz |
GraphTraverser: Add support for extra artifacts
Diffstat (limited to 'src/buildtool/main/main.cpp')
-rw-r--r-- | src/buildtool/main/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp index 23ea7b8e..eae6a7de 100644 --- a/src/buildtool/main/main.cpp +++ b/src/buildtool/main/main.cpp @@ -1402,12 +1402,13 @@ auto main(int argc, char* argv[]) -> int { // Repeat taintedness message to make the user aware that // the artifacts are not for production use. ReportTaintedness(*result); - if (build_result->second) { + if (build_result->failed_artifacts) { Logger::Log(LogLevel::Warning, "Build result contains failed artifacts."); } - return build_result->second ? kExitSuccessFailedArtifacts - : kExitSuccess; + return build_result->failed_artifacts + ? kExitSuccessFailedArtifacts + : kExitSuccess; } } #endif |