From 41c1f41245db26acb1bb8c624bae47140bcc56aa Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 10 Oct 2024 12:39:42 +0200 Subject: 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. --- libbuild2/config/init.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libbuild2/config/init.cxx') diff --git a/libbuild2/config/init.cxx b/libbuild2/config/init.cxx index b8ba31d..776299c 100644 --- a/libbuild2/config/init.cxx +++ b/libbuild2/config/init.cxx @@ -27,6 +27,7 @@ namespace build2 namespace config { static const file_rule file_rule_ (true /* check_type */); + static const noop_rule noop_rule_ (true /* exclude_group */); void functions (function_map&); // functions.cxx @@ -733,7 +734,7 @@ namespace build2 // This allows a custom configure rule while doing nothing by default. // - rs.insert_rule (configure_id, 0, "config.noop", noop_rule::instance); + rs.insert_rule (configure_id, 0, "config.noop", noop_rule_); // We need this rule for out-of-any-project dependencies (for example, // libraries imported from /usr/lib). We are registering it on the -- cgit v1.1