diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-10-10 12:39:42 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-10-10 12:39:42 +0200 |
commit | 41c1f41245db26acb1bb8c624bae47140bcc56aa (patch) | |
tree | ebb8eadd2c1f2ca99890d6d58522960061c18da9 /libbuild2/config/init.cxx | |
parent | eeb155ebc35c5947234f731c333e2bd71ea88974 (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/config/init.cxx')
-rw-r--r-- | libbuild2/config/init.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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<target> (configure_id, 0, "config.noop", noop_rule::instance); + rs.insert_rule<target> (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 |