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 ++++ libbuild2/version/rule.hxx | 1 + 2 files changed, 5 insertions(+) (limited to 'libbuild2/version') 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); } diff --git a/libbuild2/version/rule.hxx b/libbuild2/version/rule.hxx index ddc5e11..c174f40 100644 --- a/libbuild2/version/rule.hxx +++ b/libbuild2/version/rule.hxx @@ -30,6 +30,7 @@ namespace build2 action, const target&, const string&, + optional, const optional&) const override; }; -- cgit v1.1