diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-12-03 10:59:34 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-12-03 10:59:34 +0200 |
commit | 548bdfb7bdd7c4761b58bed18b0032afc05b3ce4 (patch) | |
tree | 60394a7ffbfc7ff1509c9f9f62be6d66d8bea2ae /libbuild2/rule.hxx | |
parent | a34582df17e2ca4a4e1b204152c82d935bca7467 (diff) |
Add match_rule() in addition to match_recipe()
Diffstat (limited to 'libbuild2/rule.hxx')
-rw-r--r-- | libbuild2/rule.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
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 "<ad hoc X recipe>" // names. // - build2::rule_match rule_match; + const build2::rule_match rule_match; static const dir_path recipes_build_dir; |