aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/executor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/corelib/buildgraph/executor.cpp')
-rw-r--r--src/lib/corelib/buildgraph/executor.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lib/corelib/buildgraph/executor.cpp b/src/lib/corelib/buildgraph/executor.cpp
index e0f023c3d..e774f71e7 100644
--- a/src/lib/corelib/buildgraph/executor.cpp
+++ b/src/lib/corelib/buildgraph/executor.cpp
@@ -449,9 +449,15 @@ void Executor::executeRuleNode(RuleNode *ruleNode)
for (Artifact *artifact : filterByType<Artifact>(ruleNode->product->buildData->nodes)) {
if (artifact->artifactType == Artifact::SourceFile)
continue;
- if (artifact->timestampRetrieved && !isUpToDate(artifact)
- && ruleNode->rule()->acceptsAsInput(artifact)) {
- changedInputArtifacts += artifact;
+ if (ruleNode->rule()->acceptsAsInput(artifact)) {
+ for (const Artifact * const parent : artifact->parentArtifacts()) {
+ if (parent->transformer->rule != ruleNode->rule())
+ continue;
+ if (parent->timestamp() < artifact->timestamp()) {
+ changedInputArtifacts += artifact;
+ break;
+ }
+ }
}
}
}