From 4b15244f65eb246d4e5d98ebfc1aa3137dc7275e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 13 Jul 2020 09:30:52 +0200 Subject: Add ability to extend rule interface in source-compatible manner --- libbuild2/rule.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libbuild2/rule.cxx') 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 -- cgit v1.1