From 51666badaa58d1cc70a05b362dbf9fbef64a7296 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 20 Oct 2020 15:16:28 +0200 Subject: Add operation callback for adhoc rule match and apply --- libbuild2/rule.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libbuild2/rule.cxx') 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 fallback) const + match (action a, target& t, const string& h, match_extra& me, + optional 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; } -- cgit v1.1