From 6f0f62a865a0bc04233388a049a2273e630bb840 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 28 Apr 2018 14:20:28 +0200 Subject: Expose meta-operation in build.meta_operation variable --- build2/b.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'build2/b.cxx') 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); -- cgit v1.1