From 214f1f05dfb3f2ae2090e491f3dd78836076c2e0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 20 Jan 2022 16:25:34 +0200 Subject: Add in::rule::perform_update_{pre,post}() hooks Also fix bug in depdb line parsing. --- libbuild2/in/rule.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libbuild2/in/rule.hxx') diff --git a/libbuild2/in/rule.hxx b/libbuild2/in/rule.hxx index 1294586..33caea4 100644 --- a/libbuild2/in/rule.hxx +++ b/libbuild2/in/rule.hxx @@ -66,6 +66,16 @@ namespace build2 virtual void perform_update_depdb (action, const target&, depdb&) const; + // Pre/post update. + // + virtual void + perform_update_pre (action, const target&, + ofdstream&, const char* newline) const; + + virtual void + perform_update_post (action, const target&, + ofdstream&, const char* newline) const; + // Perform variable lookup. // // Flags can be used by a custom implementation to alter the lookup -- cgit v1.1