diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-30 09:51:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-30 10:00:35 +0200 |
commit | f89d2c16c1dad9b8d2f3b0e402a47e30521f5a69 (patch) | |
tree | 10fe158dd8ca79c89ede9d21bdbfc57104c65d57 /build2/b.cxx | |
parent | 83d5e6063f670134303a3396219f63eaac0aedff (diff) |
Add support for config.build file versioning
Diffstat (limited to 'build2/b.cxx')
-rw-r--r-- | build2/b.cxx | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/build2/b.cxx b/build2/b.cxx index bb4f0fe..6d6723a 100644 --- a/build2/b.cxx +++ b/build2/b.cxx @@ -297,6 +297,7 @@ main (int argc, char* argv[]) { vector_view<opspec> opspecs; const string& mname (lifted == nullptr ? mit->name : lifted->name); + current_mname = &mname; if (lifted == nullptr) { @@ -345,6 +346,7 @@ main (int argc, char* argv[]) // A lifted meta-operation will always have default operation. // const string& oname (lifted == nullptr ? os.name : string ()); + current_oname = &oname; if (lifted != nullptr) lifted = nullptr; // Clear for the next iteration. @@ -719,7 +721,7 @@ main (int argc, char* argv[]) if (mif->meta_operation_pre != nullptr) mif->meta_operation_pre (); - current_mif = mif; + set_current_mif (*mif); dirty = true; } // @@ -973,9 +975,7 @@ main (int argc, char* argv[]) if (mif->operation_pre != nullptr) mif->operation_pre (pre_oid); // Cannot be translated. - current_inner_oif = pre_oif; - current_outer_oif = oif; - current_mode = pre_oif->mode; + set_current_oif (*pre_oif, oif); dependency_count = 0; action a (mid, pre_oid, oid); @@ -990,9 +990,7 @@ main (int argc, char* argv[]) << ", id " << static_cast<uint16_t> (pre_oid);}); } - current_inner_oif = oif; - current_outer_oif = nullptr; - current_mode = oif->mode; + set_current_oif (*oif); dependency_count = 0; action a (mid, oid, 0); @@ -1008,9 +1006,7 @@ main (int argc, char* argv[]) if (mif->operation_pre != nullptr) mif->operation_pre (post_oid); // Cannot be translated. - current_inner_oif = post_oif; - current_outer_oif = oif; - current_mode = post_oif->mode; + set_current_oif (*post_oif, oif); dependency_count = 0; action a (mid, post_oid, oid); |