From 9d6583056a82829f4512e6ba6a471a9b3e86a4a5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 31 Jan 2017 15:17:28 +0200 Subject: Redo variable pattern-typing to match in more specific order --- build2/config/init.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'build2/config') diff --git a/build2/config/init.cxx b/build2/config/init.cxx index cfb69e0..a73c394 100644 --- a/build2/config/init.cxx +++ b/build2/config/init.cxx @@ -40,9 +40,10 @@ namespace build2 auto& vp (var_pool.rw (rs)); - // utility.cxx:unconfigured() + // utility.cxx:unconfigured() (note: not overridable). // - vp.insert_pattern ("config.*.configured"); + vp.insert_pattern ( + "config.*.configured", false, variable_visibility::normal); // Load config.build if one exists. // @@ -51,7 +52,7 @@ namespace build2 // possible that some module which needs the configuration will get // called first. // - const variable& c_v (vp.insert ("config.version")); + const variable& c_v (vp.insert ("config.version", false)); // Don't load it if we are disfiguring. This is a bit tricky since the // build2 core may not yet know it is disfiguring. But we know. -- cgit v1.1