aboutsummaryrefslogtreecommitdiff
path: root/build2/scope
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-01-30 15:37:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-02-13 12:42:41 +0200
commit450c5c09ed7898a800bf5c9328799a43aba78e48 (patch)
tree684d82e370570bd80b0c2f377b2fbe3b922d007f /build2/scope
parent1f543f6eb368c3b23aa1f9cd2d23f0dba1456dec (diff)
Add global flag to variable_map
Diffstat (limited to 'build2/scope')
-rw-r--r--build2/scope4
1 files changed, 3 insertions, 1 deletions
diff --git a/build2/scope b/build2/scope
index 16ddfbb..8c5ec00 100644
--- a/build2/scope
+++ b/build2/scope
@@ -253,7 +253,8 @@ namespace build2
friend void create_bootstrap_outer (scope&);
friend scope& create_bootstrap_inner (scope&, const dir_path&);
- scope () = default;
+ explicit
+ scope (bool global): vars (global), target_vars (global) {}
scope* parent_;
scope* root_;
@@ -273,6 +274,7 @@ namespace build2
{
public:
temp_scope (scope& p)
+ : scope (false) // Not global.
{
out_path_ = p.out_path_;
src_path_ = p.src_path_;