aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/context.hxx
diff options
context:
space:
mode:
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;