From 534ca7619a62a74bce8e4b30931aaf99f9c3beb6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 16 Aug 2020 16:21:35 +0200 Subject: Add support for post-configure and pre-disfigure hooks --- libbuild2/context.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libbuild2/context.hxx') diff --git a/libbuild2/context.hxx b/libbuild2/context.hxx index a8b6b01..c4e1259 100644 --- a/libbuild2/context.hxx +++ b/libbuild2/context.hxx @@ -265,6 +265,16 @@ namespace build2 const operation_info* current_inner_oif; const operation_info* current_outer_oif; + // Check whether this is the specified meta-operation during bootstrap + // (when current_mif may not be yet known). + // + bool + bootstrap_meta_operation (const char* mo) + { + return ((current_mname == mo ) || + (current_mname.empty () && current_oname == mo)); + }; + // Current operation number (1-based) in the meta-operation batch. // size_t current_on; -- cgit v1.1