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/adhoc-rule-cxx.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libbuild2/adhoc-rule-cxx.cxx') diff --git a/libbuild2/adhoc-rule-cxx.cxx b/libbuild2/adhoc-rule-cxx.cxx index 8d9b788..3f52b53 100644 --- a/libbuild2/adhoc-rule-cxx.cxx +++ b/libbuild2/adhoc-rule-cxx.cxx @@ -63,7 +63,7 @@ namespace build2 #if defined(BUILD2_BOOTSTRAP) || defined(LIBBUILD2_STATIC_BUILD) bool adhoc_cxx_rule:: - match (action, target&, const string&) const + match (action, target&, const string&, match_extra&) const { // Note that we wait until match() (instead of, say, failing in the // parser) to allow the presence of ad hoc C++ recipes for other @@ -92,7 +92,7 @@ namespace build2 load_module_library (const path& lib, const string& sym, string& err); bool adhoc_cxx_rule:: - match (action a, target& t, const string& hint) const + match (action a, target& t, const string& hint, match_extra& me) const { tracer trace ("adhoc_cxx_rule::match"); @@ -653,13 +653,13 @@ namespace build2 } } - return impl->match (a, t, hint); + return impl->match (a, t, hint, me); } #endif // BUILD2_BOOTSTRAP || LIBBUILD2_STATIC_BUILD recipe adhoc_cxx_rule:: - apply (action a, target& t) const + apply (action a, target& t, match_extra& me) const { - return impl.load (memory_order_relaxed)->apply (a, t); + return impl.load (memory_order_relaxed)->apply (a, t, me); } } -- cgit v1.1