aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/config/init.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-03-30 15:30:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-03-31 07:32:46 +0200
commitdfb51bc816cde2cb345f8a0300205e6ac95a2065 (patch)
treead5996b87bb3829f7058aa990fab65940b575249 /libbuild2/config/init.cxx
parent65340a0a897c91b580db1de0bab026a0814c5d74 (diff)
Switch to project variable visibility by default
Diffstat (limited to 'libbuild2/config/init.cxx')
-rw-r--r--libbuild2/config/init.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/libbuild2/config/init.cxx b/libbuild2/config/init.cxx
index f15bfc5..75193bb 100644
--- a/libbuild2/config/init.cxx
+++ b/libbuild2/config/init.cxx
@@ -44,12 +44,12 @@ namespace build2
// reserved to not be valid module names (`build`). We also currently
// treat `import` as special.
//
+ auto& vp (rs.var_pool ());
+
// NOTE: all config.** variables are by default made (via a pattern) to
// be overridable with global visibility. So we must override this if a
// different semantics is required.
//
- auto& vp (rs.var_pool ());
-
const auto v_p (variable_visibility::project);
// While config.config.load (see below) could theoretically be specified
@@ -166,6 +166,8 @@ namespace build2
auto& vp (rs.var_pool ());
+ // Note: config.* is pattern-typed to global visibility.
+ //
const auto v_p (variable_visibility::project);
auto& c_l (vp.insert<paths> ("config.config.load", true /* ovr */));