From 435b3e43dd054a716b3fc67fc34b43267f8e9809 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 8 Feb 2021 11:02:25 +0200 Subject: Enter scope src directories into scope map --- libbuild2/context.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbuild2/context.cxx') diff --git a/libbuild2/context.cxx b/libbuild2/context.cxx index 3224dc1..df06aa8 100644 --- a/libbuild2/context.cxx +++ b/libbuild2/context.cxx @@ -35,7 +35,7 @@ namespace build2 create_global_scope (scope_map& m) { auto i (m.insert (dir_path ())); - scope& r (i->second); + scope& r (*i->second.scope); r.out_path_ = &i->first; return r; }; @@ -488,7 +488,7 @@ namespace build2 // if (c == '!' || (dir && dir->absolute ())) { - scope& s (c == '!' ? gs : sm.insert (*dir)->second); + scope& s (c == '!' ? gs : *sm.insert (*dir)->second.scope); auto p (s.vars.insert (*o)); assert (p.second); // Variable name is unique. -- cgit v1.1