aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/adhoc-rule-cxx.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/adhoc-rule-cxx.cxx
parentecc0f934eff0443490202b614a73097e75b1e3db (diff)
Add operation callback for adhoc rule match and apply
Diffstat (limited to 'libbuild2/adhoc-rule-cxx.cxx')
-rw-r--r--libbuild2/adhoc-rule-cxx.cxx10
1 files changed, 5 insertions, 5 deletions
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);
}
}