From 088a60c512aff26eeb026c516d0afe724880cb2b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 7 Apr 2015 10:47:28 +0200 Subject: Provide more convenient access to root scope --- build/b.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build/b.cxx') 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]; } -- cgit v1.1