diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-10-31 14:17:41 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-11-03 12:43:44 +0200 |
commit | e612a49ef95cf9ce3d0b5496d724f73cae9aa333 (patch) | |
tree | aca5a1007423956524b4149bd0f95c6393691ba1 /libbuild2/version | |
parent | f500b3274b4c937d315a652aad3bfcdd808b49ec (diff) |
Add line processing customization hook to in::rule
Diffstat (limited to 'libbuild2/version')
-rw-r--r-- | libbuild2/version/rule.cxx | 4 | ||||
-rw-r--r-- | libbuild2/version/rule.hxx | 1 |
2 files changed, 5 insertions, 0 deletions
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<uint64_t> flags, const optional<string>& 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<uint64_t>, const optional<string>&) const override; }; |