aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-10-20 15:16:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-10-20 15:16:28 +0200
commit51666badaa58d1cc70a05b362dbf9fbef64a7296 (patch)
tree2919f013c9c1c12c7d31ee0b60eb0fbcb4130558 /libbuild2/rule.cxx
parentecc0f934eff0443490202b614a73097e75b1e3db (diff)
Add operation callback for adhoc rule match and apply
Diffstat (limited to 'libbuild2/rule.cxx')
-rw-r--r--libbuild2/rule.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/libbuild2/rule.cxx b/libbuild2/rule.cxx
index ac5b310..a671b04 100644
--- a/libbuild2/rule.cxx
+++ b/libbuild2/rule.cxx
@@ -332,13 +332,14 @@ namespace build2
const dir_path adhoc_rule::recipes_build_dir ("recipes");
bool adhoc_rule::
- match (action a, target& t, const string& h, optional<action> fallback) const
+ match (action a, target& t, const string& h, match_extra& me,
+ optional<action> fallback) const
{
- return !fallback && match (a, t, h);
+ return !fallback && match (a, t, h, me);
}
bool adhoc_rule::
- match (action, target&, const string&) const
+ match (action, target&, const string&, match_extra&) const
{
return true;
}