aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/context.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-08-16 16:21:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-08-16 16:21:35 +0200
commit534ca7619a62a74bce8e4b30931aaf99f9c3beb6 (patch)
tree2e4ffc0b8aa6651f5003009df0f372529754b1f5 /libbuild2/context.hxx
parentd91e48ea57b83f7018a25d3f54bba96cf889d66d (diff)
Add support for post-configure and pre-disfigure hooks
Diffstat (limited to 'libbuild2/context.hxx')
-rw-r--r--libbuild2/context.hxx10
1 files changed, 10 insertions, 0 deletions
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;