From dfb51bc816cde2cb345f8a0300205e6ac95a2065 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 30 Mar 2020 15:30:08 +0200 Subject: Switch to project variable visibility by default --- libbuild2/config/init.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libbuild2/config') 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 ("config.config.load", true /* ovr */)); -- cgit v1.1