From 548bdfb7bdd7c4761b58bed18b0032afc05b3ce4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 3 Dec 2020 10:59:34 +0200 Subject: Add match_rule() in addition to match_recipe() --- libbuild2/rule.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libbuild2/rule.hxx') diff --git a/libbuild2/rule.hxx b/libbuild2/rule.hxx index e29c0b8..217632f 100644 --- a/libbuild2/rule.hxx +++ b/libbuild2/rule.hxx @@ -81,7 +81,9 @@ namespace build2 apply (action, target&) const override; file_rule () {} + static const file_rule instance; + static const build2::rule_match rule_match; }; class LIBBUILD2_SYMEXPORT alias_rule: public simple_rule @@ -197,7 +199,7 @@ namespace build2 // latter does. As a result, we use special-looking "" // names. // - build2::rule_match rule_match; + const build2::rule_match rule_match; static const dir_path recipes_build_dir; -- cgit v1.1