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/context.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'build/context.cxx') diff --git a/build/context.cxx b/build/context.cxx index a0952ec..7303e7d 100644 --- a/build/context.cxx +++ b/build/context.cxx @@ -18,6 +18,8 @@ namespace build path work; path home; + const meta_operation_info* current_mif; + const operation_info* current_oif; execution_mode current_mode; const target_rule_map* current_rules; @@ -79,17 +81,15 @@ namespace build path src_out (const path& out, scope& s) { - return src_out (out, - s["out_root"].as (), - s["src_root"].as ()); + scope& rs (*s.root_scope ()); + return src_out (out, rs.path (), rs.src_path ()); } path out_src (const path& src, scope& s) { - return out_src (src, - s["out_root"].as (), - s["src_root"].as ()); + scope& rs (*s.root_scope ()); + return out_src (src, rs.path (), rs.src_path ()); } path -- cgit v1.1