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/context.cxx | |
parent | 137df0bea6cebabe5278e67e5dad6f3047c762fb (diff) |
Provide more convenient access to root scope
Diffstat (limited to 'build/context.cxx')
-rw-r--r-- | build/context.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
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<const path&> (), - s["src_root"].as<const path&> ()); + 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<const path&> (), - s["src_root"].as<const path&> ()); + scope& rs (*s.root_scope ()); + return out_src (src, rs.path (), rs.src_path ()); } path |