summaryrefslogtreecommitdiff
path: root/src/lib/buildgraph
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2013-10-14 11:20:22 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2013-10-14 15:11:48 +0200
commit72533cf1993417ddf81ba3c392e25bdbbe87d4f9 (patch)
tree517857b25b0ccdba6a36cc2fc85e11617b0a76b3 /src/lib/buildgraph
parentc6feff93e5e954f225fd4afda8283db6eaad4ae3 (diff)
downloadqbs-72533cf1993417ddf81ba3c392e25bdbbe87d4f9.tar.gz
Add another build graph sanity check.
Change-Id: I9860fdea260ee53a04c5ba4e630ddf7cf4bfe7f6 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/buildgraph')
-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);