diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-07 10:47:28 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-07 10:47:28 +0200 |
commit | 088a60c512aff26eeb026c516d0afe724880cb2b (patch) | |
tree | 3fbd798bd6a385875c8db3b2677a94d3abeb23eb /build/b.cxx | |
parent | 137df0bea6cebabe5278e67e5dad6f3047c762fb (diff) |
Provide more convenient access to root scope
Diffstat (limited to 'build/b.cxx')
-rw-r--r-- | build/b.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build/b.cxx b/build/b.cxx index c71e6d3..d7a5638 100644 --- a/build/b.cxx +++ b/build/b.cxx @@ -502,7 +502,7 @@ main (int argc, char* argv[]) // files, if any. Note that we might already have done this // as a result of one of the preceding target processing. // - scope& rs (scopes[out_root]); + scope& rs (scopes.insert (out_root, true).first); // Enter built-in meta-operation and operation names. Note that // the order of registration should match the id constants; see @@ -740,6 +740,8 @@ main (int argc, char* argv[]) act = action (mid, oid); + current_mif = mif; + current_oif = oif; current_mode = oif->mode; current_rules = &rules[oid]; } |