From 913101beef1165f4553435b6ce8fb71ebe3b4a5e Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Tue, 10 Jul 2018 12:08:32 +0200 Subject: Consider Rule::excludedInputs where needed ...and add an assert that ensures that excluded inputs never appear in the rule application. Task-number: QBS-1171 Change-Id: Ia71c3224807bd9370f0d5048db45d6f9fb570fa1 Reviewed-by: Christian Kandeler --- src/lib/corelib/buildgraph/rulenode.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/corelib/buildgraph/rulenode.cpp') diff --git a/src/lib/corelib/buildgraph/rulenode.cpp b/src/lib/corelib/buildgraph/rulenode.cpp index 6c10b3dd4..27f2d2c55 100644 --- a/src/lib/corelib/buildgraph/rulenode.cpp +++ b/src/lib/corelib/buildgraph/rulenode.cpp @@ -204,6 +204,8 @@ ArtifactSet RuleNode::currentInputArtifacts() const // This can e.g. happen for the ["cpp", "hpp"] -> ["hpp", "cpp", "unmocable"] rule. continue; } + if (artifact->fileTags().intersects(m_rule->excludedInputs)) + continue; s += artifact; } } -- cgit v1.2.3