aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-07-13 09:30:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-07-13 09:30:52 +0200
commit4b15244f65eb246d4e5d98ebfc1aa3137dc7275e (patch)
tree7bb1564772662ef22ea0dc12788938b28213b57c /libbuild2/rule.cxx
parentdb73844a1e11787025a8642f69a52b5f9c87aea2 (diff)
Add ability to extend rule interface in source-compatible manner
Diffstat (limited to 'libbuild2/rule.cxx')
-rw-r--r--libbuild2/rule.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/libbuild2/rule.cxx b/libbuild2/rule.cxx
index 9028096..7ccee4e 100644
--- a/libbuild2/rule.cxx
+++ b/libbuild2/rule.cxx
@@ -22,6 +22,20 @@ namespace build2
{
}
+ // simple_rule
+ //
+ bool simple_rule::
+ match (action a, target& t, const string& h, match_extra&) const
+ {
+ return match (a, t, h);
+ }
+
+ recipe simple_rule::
+ apply (action a, target& t, match_extra&) const
+ {
+ return apply (a, t);
+ }
+
// file_rule
//
// Note that this rule is special. It is the last, fallback rule. If