From 8e0e8edb727a5367d991880b033eb13060f4c8eb Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 26 Aug 2019 07:34:15 +0200 Subject: Make target types project-wide --- libbuild2/context.hxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'libbuild2/context.hxx') 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; @@ -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. // -- cgit v1.1