From f3a8fd226d406cbb60d5531e1e334d2c2f85b0d6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 21 Jul 2018 14:03:04 +0200 Subject: Tweak bash rule matching semantics --- build2/bash/rule.cxx | 7 +++++-- 1 file 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 ()); // Found module. for (prerequisite_member p: group_prerequisite_members (a, t)) { if (include (a, t, p) != include_type::normal) // Excluded/ad hoc. -- cgit v1.1