aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/rule.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-12-03 10:59:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-12-03 10:59:34 +0200
commit548bdfb7bdd7c4761b58bed18b0032afc05b3ce4 (patch)
tree60394a7ffbfc7ff1509c9f9f62be6d66d8bea2ae /libbuild2/rule.hxx
parenta34582df17e2ca4a4e1b204152c82d935bca7467 (diff)
Add match_rule() in addition to match_recipe()
Diffstat (limited to 'libbuild2/rule.hxx')
-rw-r--r--libbuild2/rule.hxx4
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;