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/parser.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libbuild2/parser.cxx') 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 (var), -- cgit v1.1