From 721835d4dd0fe306e4b55d425f9360fac592eace Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 3 Dec 2017 13:58:28 +0200 Subject: Allow typification of variables and values across load generations The original semantics turned out to be too restrictive. For example, the user may have specified the config.c variable on the command line that is only used by an imported project that is loaded in a subsequent generation. We are also relaxing it for values since conceptually the two feel the same. For a value the (hypothetical) example is a "common" variable set in a project root that is only queried in a subdirectory in a subsequent generation. --- 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 1b5bb0b..b359d8f 100644 --- a/build2/context.cxx +++ b/build2/context.cxx @@ -602,7 +602,7 @@ namespace build2 // if (o->override == nullptr) const_cast (o)->override.reset ( - new variable {n + k, nullptr, nullptr, v, 0}); + new variable {n + k, nullptr, nullptr, v}); o = o->override.get (); -- cgit v1.1