aboutsummaryrefslogtreecommitdiff
path: root/build2/b.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-04-28 14:20:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-04-28 14:20:28 +0200
commit6f0f62a865a0bc04233388a049a2273e630bb840 (patch)
tree3855f07359fa10342f127407a75408e332d48419 /build2/b.cxx
parent2cfa969de8a275e0e65b095ed79a5f588c513bca (diff)
Expose meta-operation in build.meta_operation variable
Diffstat (limited to 'build2/b.cxx')
-rw-r--r--build2/b.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/build2/b.cxx b/build2/b.cxx
index 6921a97..b73a0d6 100644
--- a/build2/b.cxx
+++ b/build2/b.cxx
@@ -596,6 +596,11 @@ main (int argc, char* argv[])
}
}
+ // Expose eraly so can be used during bootstrap (with the same
+ // limitations as for pre-processing).
+ //
+ global_scope->rw ().assign (var_build_meta_operation) = mname;
+
for (auto oit (opspecs.begin ()); oit != opspecs.end (); ++oit)
{
opspec& os (*oit);