From 6535bf6175af32e2514faf75d2742424751a783b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 15 Apr 2015 14:10:50 +0200 Subject: New variables architecture Now operator[] is only used for lookup. --- build/b.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build/b.cxx') diff --git a/build/b.cxx b/build/b.cxx index 3fe9d20..2e36003 100644 --- a/build/b.cxx +++ b/build/b.cxx @@ -468,7 +468,7 @@ main (int argc, char* argv[]) // See if the bootstrap process set/changed src_root. // { - auto v (rs.variables["src_root"]); + auto v (rs.assign ("src_root")); if (v) { @@ -528,7 +528,7 @@ main (int argc, char* argv[]) // Why don't we support it? Because things are already complex // enough here. // - if (auto v = rs.ro_variables ()["subprojects"]) + if (auto v = rs.vars["subprojects"]) { for (const name& n: v.as ()) { -- cgit v1.1