From 6417a4e6af2b7732ec0da6af24f1a56f7cdada3f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 31 Mar 2016 09:01:50 +0200 Subject: Set part of variable override implementation --- build2/module.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'build2/module.cxx') diff --git a/build2/module.cxx b/build2/module.cxx index b090173..cfab057 100644 --- a/build2/module.cxx +++ b/build2/module.cxx @@ -98,10 +98,12 @@ namespace build2 bool l (i != lm.end ()); bool c (l && i->second.init (rs, bs, loc, i->second.module, f, opt)); - const variable& lv (var_pool.find (name + ".loaded", - variable_visibility::project)); - const variable& cv (var_pool.find (name + ".configured", - variable_visibility::project)); + const variable& lv (var_pool.insert (name + ".loaded", + false, + variable_visibility::project)); + const variable& cv (var_pool.insert (name + ".configured", + false, + variable_visibility::project)); bs.assign (lv) = l; bs.assign (cv) = c; -- cgit v1.1