summaryrefslogtreecommitdiff
path: root/src/lib/buildgraph/rulesapplicator.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2013-06-24 15:10:52 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2013-06-24 16:28:04 +0200
commitc6ecdbdbe84f24eb7ba9c1acb780339edf007624 (patch)
treeea3aa1b2a834fd3ecea79197bb3c2a5860da0d54 /src/lib/buildgraph/rulesapplicator.cpp
parent3104e3053dbff443122165d28ff12b5e14e0cdac (diff)
downloadqbs-c6ecdbdbe84f24eb7ba9c1acb780339edf007624.tar.gz
Improve handling of changes to restored build graph.
Instead of painstakingly inserting new product pointers into an existing build graph, do it the other way around and put existing build data into the newly resolved project. This is much more robust. Change-Id: If38e4a5e14c6a5faedb0c590e86aa5efc7844e39 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/buildgraph/rulesapplicator.cpp')
-rw-r--r--src/lib/buildgraph/rulesapplicator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/buildgraph/rulesapplicator.cpp b/src/lib/buildgraph/rulesapplicator.cpp
index d51da8003..388da361a 100644
--- a/src/lib/buildgraph/rulesapplicator.cpp
+++ b/src/lib/buildgraph/rulesapplicator.cpp
@@ -261,7 +261,7 @@ Artifact *RulesApplicator::createOutputArtifact(const RuleArtifactConstPtr &rule
}
outputArtifact->fileTags += ruleArtifact->fileTags;
} else {
- outputArtifact = new Artifact(m_product->project);
+ outputArtifact = new Artifact(m_product->topLevelProject());
outputArtifact->artifactType = Artifact::Generated;
outputArtifact->setFilePath(outputPath);
outputArtifact->fileTags = ruleArtifact->fileTags;