aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-10-10 12:39:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-10-10 12:39:42 +0200
commit41c1f41245db26acb1bb8c624bae47140bcc56aa (patch)
treeebb8eadd2c1f2ca99890d6d58522960061c18da9 /libbuild2/rule.cxx
parenteeb155ebc35c5947234f731c333e2bd71ea88974 (diff)
Don't match group-based targets with fallback rule during configure (GH #364)
Membership of such targets can only be accurately determined by the ad hoc recipe.
Diffstat (limited to 'libbuild2/rule.cxx')
-rw-r--r--libbuild2/rule.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/rule.cxx b/libbuild2/rule.cxx
index dc1c96c..b504dc7 100644
--- a/libbuild2/rule.cxx
+++ b/libbuild2/rule.cxx
@@ -430,9 +430,9 @@ namespace build2
// noop_rule
//
bool noop_rule::
- match (action, target&) const
+ match (action, target& t) const
{
- return true;
+ return !exclude_group_ || !t.is_a<group> ();
}
recipe noop_rule::