aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/context.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-08-26 07:34:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-08-26 07:34:15 +0200
commit8e0e8edb727a5367d991880b033eb13060f4c8eb (patch)
tree75916dbef9b7a0dc6ef0fa939b9f748fc353d5cc /libbuild2/context.hxx
parent113c43a42d20073428d46c04a1aa1cb305ea12d7 (diff)
Make target types project-wide
Diffstat (limited to 'libbuild2/context.hxx')
-rw-r--r--libbuild2/context.hxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/libbuild2/context.hxx b/libbuild2/context.hxx
index 243ad2f..f9432ae 100644
--- a/libbuild2/context.hxx
+++ b/libbuild2/context.hxx
@@ -25,6 +25,7 @@ namespace build2
class scope;
class scope_map;
class target_set;
+ class target_type_map;
class value;
using values = small_vector<value, 1>;
@@ -274,16 +275,17 @@ namespace build2
// Build state (scopes, targets, variables, etc).
//
const scope_map& scopes;
- const scope& global_scope;
-
target_set& targets;
-
const variable_pool& var_pool;
const variable_overrides& var_overrides; // Project and relative scope.
- variable_override_cache& global_override_cache;
-
function_map& functions;
+ // Global scope.
+ //
+ const scope& global_scope;
+ const target_type_map& global_target_types;
+ variable_override_cache& global_override_cache;
+
// Cached variables.
//