diff options
-rw-r--r-- | build2/bash/rule.cxx | 7 |
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. |