diff options
Diffstat (limited to 'libbuild2/parser.cxx')
-rw-r--r-- | libbuild2/parser.cxx | 5 |
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), |