From dbd30777d1c60bdcdff226b5f97582dba0bba4ba Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 10 Feb 2017 14:26:16 +0200 Subject: Allow back overriding variables specified in buildfiles It is still not clear whether this is the right thing to allow, conceptually, but with this disallowed it's hard to test this functionality. Perhaps we should have an attribute [overridable]. The problem is one will also have to set this variable to some value (e.g., [null]) which is not exactly the same as undefined (especially when testing). --- build2/context.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build2/context.cxx') diff --git a/build2/context.cxx b/build2/context.cxx index 0357eb6..cbb2656 100644 --- a/build2/context.cxx +++ b/build2/context.cxx @@ -179,7 +179,7 @@ namespace build2 c == '%' ? variable_visibility::project : variable_visibility::normal); - const variable& var (vp.insert (n)); + const variable& var (vp.insert (n, true)); // Allow overrides. const char* k (tt == token_type::assign ? ".__override" : tt == token_type::append ? ".__suffix" : ".__prefix"); -- cgit v1.1