From e612a49ef95cf9ce3d0b5496d724f73cae9aa333 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 31 Oct 2021 14:17:41 +0200 Subject: Add line processing customization hook to in::rule --- libbuild2/version/rule.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libbuild2/version/rule.cxx') diff --git a/libbuild2/version/rule.cxx b/libbuild2/version/rule.cxx index 919dfcf..4da4e3f 100644 --- a/libbuild2/version/rule.cxx +++ b/libbuild2/version/rule.cxx @@ -89,8 +89,11 @@ namespace build2 action a, const target& t, const string& n, + optional flags, const optional& null) const { + assert (!flags); + // Note that this code will be executed during up-to-date check for each // substitution so let's try not to do anything overly sub-optimal here. // @@ -110,6 +113,7 @@ namespace build2 a, t, p == string::npos ? n : string (n, p + 1), + nullopt, null); } -- cgit v1.1