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/config/operation.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'build/config') diff --git a/build/config/operation.cxx b/build/config/operation.cxx index 14f2a0a..ec9e4e6 100644 --- a/build/config/operation.cxx +++ b/build/config/operation.cxx @@ -88,7 +88,7 @@ namespace build << "# feel free to edit." << endl << "#" << endl; - if (auto v = root.ro_variables ()["amalgamation"]) + if (auto v = root.vars["amalgamation"]) { const dir_path& d (v.as ()); @@ -99,7 +99,7 @@ namespace build // Save all the variables in the config namespace that are set // on the project's root scope. // - for (auto p (root.variables.find_namespace ("config")); + for (auto p (root.vars.find_namespace ("config")); p.first != p.second; ++p.first) { @@ -178,7 +178,7 @@ namespace build // Configure subprojects that have been loaded. // - if (auto v = root.ro_variables ()["subprojects"]) + if (auto v = root.vars["subprojects"]) { for (const name& n: v.as ()) { @@ -272,7 +272,7 @@ namespace build // Disfigure subprojects. Since we don't load buildfiles during // disfigure, we do it for all known subprojects. // - if (auto v = root.ro_variables ()["subprojects"]) + if (auto v = root.vars["subprojects"]) { for (const name& n: v.as ()) { @@ -286,8 +286,7 @@ namespace build // Check if the bootstrap process changed src_root. // - const dir_path& p ( - nroot.variables["src_root"].as ()); + const dir_path& p (nroot.vars["src_root"].as ()); if (src_nroot != p) fail << "bootstrapped src_root " << p << " does not match " -- cgit v1.1