From a05ddaa95a8f7f65fe01e2c1613a354876e69839 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 10 Mar 2022 10:17:48 +0200 Subject: Add reverse_execute_prerequisites() variant --- libbuild2/algorithm.ixx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libbuild2/algorithm.ixx') diff --git a/libbuild2/algorithm.ixx b/libbuild2/algorithm.ixx index c57e117..1b3a5cd 100644 --- a/libbuild2/algorithm.ixx +++ b/libbuild2/algorithm.ixx @@ -834,6 +834,12 @@ namespace build2 const timestamp&, const execute_filter&, size_t); + LIBBUILD2_SYMEXPORT pair, const target*> + reverse_execute_prerequisites (const target_type*, + action, const target&, + const timestamp&, const execute_filter&, + size_t); + inline optional execute_prerequisites (action a, const target& t, const timestamp& mt, const execute_filter& ef, @@ -842,6 +848,14 @@ namespace build2 return execute_prerequisites (nullptr, a, t, mt, ef, n).first; } + inline optional + reverse_execute_prerequisites (action a, const target& t, + const timestamp& mt, const execute_filter& ef, + size_t n) + { + return reverse_execute_prerequisites (nullptr, a, t, mt, ef, n).first; + } + template inline pair, const T&> execute_prerequisites (action a, const target& t, -- cgit v1.1