summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/buildgraph/buildgraph.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/buildgraph/buildgraph.cpp b/src/lib/buildgraph/buildgraph.cpp
index 04a9d3266..819de79cc 100644
--- a/src/lib/buildgraph/buildgraph.cpp
+++ b/src/lib/buildgraph/buildgraph.cpp
@@ -423,6 +423,11 @@ static void doSanityChecksForProduct(const ResolvedProductConstPtr &product, con
QBS_CHECK(!!product->enabled == !!buildData);
if (!product->enabled)
return;
+ foreach (Artifact * const ta, buildData->targetArtifacts) {
+ if (logger.traceEnabled())
+ logger.qbsTrace() << "Checking target artifact '" << ta->fileName() << "'.";
+ QBS_CHECK(buildData->artifacts.contains(ta));
+ }
foreach (Artifact * const artifact, buildData->artifacts) {
logger.qbsDebug() << "Sanity checking artifact '" << artifact->fileName() << "'";
QBS_CHECK(artifact->product == product);