From 9891b20350021ce41a950645dd76df20a45c92cc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 2 Dec 2015 11:37:15 +0200 Subject: Implement optional module loading The syntax is: using? cli Now each module use results in two bool variables: .loaded and .configured. Also implement variable visibility (the above two variables are limited to project). --- build/file.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'build/file.cxx') diff --git a/build/file.cxx b/build/file.cxx index 970957b..9595d8f 100644 --- a/build/file.cxx +++ b/build/file.cxx @@ -528,7 +528,7 @@ namespace build // the NULL value indicates that we found no subprojects. // { - const variable& var (variable_pool.find ("subprojects")); + const variable& var (var_pool.find ("subprojects")); auto rp (root.vars.assign(var)); // Set NULL by default. value& v (rp.first); @@ -794,8 +794,7 @@ namespace build if (out_root.empty ()) { const variable& var ( - variable_pool.find ("config.import." + project, - dir_path_type)); + var_pool.find ("config.import." + project, dir_path_type)); if (auto l = iroot[var]) { -- cgit v1.1