aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-07-21 14:03:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-07-21 14:03:04 +0200
commitf3a8fd226d406cbb60d5531e1e334d2c2f85b0d6 (patch)
treee945b89b3c5477cf84cb87b7b767da87e97bb51e
parentc1dc06dfd1d329f8c6499dbe2166725ab9c35e17 (diff)
Tweak bash rule matching semantics
-rw-r--r--build2/bash/rule.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/build2/bash/rule.cxx b/build2/bash/rule.cxx
index 4746ffe..54963db 100644
--- a/build2/bash/rule.cxx
+++ b/build2/bash/rule.cxx
@@ -46,8 +46,11 @@ namespace build2
{
tracer trace ("bash::in_rule::match");
- bool fi (false); // Found in.
- bool fm (false); // Found module.
+ // Note that for bash{} we match even if the target does not depend on
+ // any modules.
+ //
+ bool fi (false); // Found in.
+ bool fm (t.is_a<bash> ()); // Found module.
for (prerequisite_member p: group_prerequisite_members (a, t))
{
if (include (a, t, p) != include_type::normal) // Excluded/ad hoc.