aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/context.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/context.cxx')
-rw-r--r--libbuild2/context.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbuild2/context.cxx b/libbuild2/context.cxx
index e8f671d..09ab15d 100644
--- a/libbuild2/context.cxx
+++ b/libbuild2/context.cxx
@@ -34,8 +34,8 @@ namespace build2
static inline scope&
create_global_scope (scope_map& m)
{
- auto i (m.insert (dir_path ()));
- scope& r (*i->second.scope);
+ auto i (m.insert_out (dir_path ()));
+ scope& r (*i->second.front ());
r.out_path_ = &i->first;
return r;
};
@@ -490,7 +490,7 @@ namespace build2
//
if (c == '!' || (dir && dir->absolute ()))
{
- scope& s (c == '!' ? gs : *sm.insert (*dir)->second.scope);
+ scope& s (c == '!' ? gs : *sm.insert_out (*dir)->second.front ());
auto p (s.vars.insert (*o));
assert (p.second); // Variable name is unique.