aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/parser.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/parser.cxx
parent65340a0a897c91b580db1de0bab026a0814c5d74 (diff)
Switch to project variable visibility by default
Diffstat (limited to 'libbuild2/parser.cxx')
-rw-r--r--libbuild2/parser.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx
index 68e7ed9..532b357 100644
--- a/libbuild2/parser.cxx
+++ b/libbuild2/parser.cxx
@@ -1823,7 +1823,7 @@ namespace build2
// Note that even though we are relying on the config.** variable
// pattern to set global visibility, let's make sure as a sanity check.
//
- if (var.visibility != variable_visibility::normal)
+ if (var.visibility != variable_visibility::global)
{
fail (t) << "configuration variable " << var << " has "
<< var.visibility << " visibility";
@@ -3224,7 +3224,8 @@ namespace build2
<< var.type->name << " to " << type->name;
}
- //@@ TODO: the same for vis and ovr.
+ //@@ TODO: the same checks for vis and ovr (when we have the corresponding
+ // attributes).
if (type || vis || ovr)
ctx.var_pool.update (const_cast<variable&> (var),