aboutsummaryrefslogtreecommitdiff
path: root/build/context.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-07 10:47:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-07 10:47:28 +0200
commit088a60c512aff26eeb026c516d0afe724880cb2b (patch)
tree3fbd798bd6a385875c8db3b2677a94d3abeb23eb /build/context.cxx
parent137df0bea6cebabe5278e67e5dad6f3047c762fb (diff)
Provide more convenient access to root scope
Diffstat (limited to 'build/context.cxx')
-rw-r--r--build/context.cxx12
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