aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2014-07-16 17:58:06 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2014-07-16 18:20:45 +0200
commitbedf128a9ac1d6ac25835d1c5d68229766656457 (patch)
tree1033a6104659cef407c8647cc98008950a977a22 /src/lib/corelib/buildgraph
parent53a95b6f16788c6c248bb695b9ce9ad5e3a031ab (diff)
Take product type changes into account when change tracking.
This property is special: We cannot just test for relevance by checking whether it is used in any transformers, because changing it can cause new transformers to get pulled in. Task-number: QBS-650 Change-Id: If18495b47c7238fc8a1256146f4e935ce9655b18 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/corelib/buildgraph')
-rw-r--r--src/lib/corelib/buildgraph/buildgraphloader.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/corelib/buildgraph/buildgraphloader.cpp b/src/lib/corelib/buildgraph/buildgraphloader.cpp
index 4ea222fcf..f2f4c3c54 100644
--- a/src/lib/corelib/buildgraph/buildgraphloader.cpp
+++ b/src/lib/corelib/buildgraph/buildgraphloader.cpp
@@ -520,6 +520,12 @@ bool BuildGraphLoader::checkForPropertyChanges(const ResolvedProductPtr &restore
if (checkTransformersForPropertyChanges(restoredProduct, newlyResolvedProduct))
return true;
+ if (restoredProduct->fileTags != newlyResolvedProduct->fileTags) {
+ m_logger.qbsTrace() << "Product type changed from " << restoredProduct->fileTags
+ << "to " << newlyResolvedProduct->fileTags;
+ return true;
+ }
+
if (checkProductForInstallInfoChanges(restoredProduct, newlyResolvedProduct))
return true;
if (!artifactPropertyListsAreEqual(restoredProduct->artifactProperties,