aboutsummaryrefslogtreecommitdiff
path: root/build2/variable.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-12-03 13:58:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-12-03 13:58:28 +0200
commit721835d4dd0fe306e4b55d425f9360fac592eace (patch)
treec6358c198a444d2ce387942e17e22c8bac7f55b7 /build2/variable.hxx
parentc49b0e8ca53928cc20e9d4832536baaeee6d7a9d (diff)
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.
Diffstat (limited to 'build2/variable.hxx')
-rw-r--r--build2/variable.hxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/build2/variable.hxx b/build2/variable.hxx
index f3eea63..60a1699 100644
--- a/build2/variable.hxx
+++ b/build2/variable.hxx
@@ -123,7 +123,6 @@ namespace build2
const value_type* type; // If NULL, then not (yet) typed.
unique_ptr<variable> override;
variable_visibility visibility;
- size_t generation; // load_generation of this variable.
};
inline bool
@@ -1070,7 +1069,6 @@ namespace build2
using value::operator=;
size_t version = 0; // Incremented on each modification (variable_cache).
- size_t generation; // load_generation of this value (global state only).
};
using map_type = butl::prefix_map<reference_wrapper<const variable>,