aboutsummaryrefslogtreecommitdiff
path: root/build/b.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-15 14:10:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-15 14:10:50 +0200
commit6535bf6175af32e2514faf75d2742424751a783b (patch)
tree21312b28ffe2bbb459a57e80a1f8eec498327d9f /build/b.cxx
parentad720fabd468974e3909f62a0f4e4e3cf0d03aef (diff)
New variables architecture
Now operator[] is only used for lookup.
Diffstat (limited to 'build/b.cxx')
-rw-r--r--build/b.cxx4
1 files changed, 2 insertions, 2 deletions
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<const list_value&> ())
{