From e94354ceef93f45b0a95f35eee62750876ec936b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 19 Mar 2021 15:38:34 +0200 Subject: Redo entering of src directories into scope_map --- libbuild2/dump.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libbuild2/dump.cxx') diff --git a/libbuild2/dump.cxx b/libbuild2/dump.cxx index 7cd95dd..bc44b24 100644 --- a/libbuild2/dump.cxx +++ b/libbuild2/dump.cxx @@ -438,7 +438,7 @@ namespace build2 scope_map::const_iterator& i, bool rel) { - const scope& p (*i->second.scope); + const scope& p (*i->second.front ()); const dir_path& d (i->first); ++i; @@ -493,7 +493,9 @@ namespace build2 // scope). // for (auto e (p.ctx.scopes.end ()); - i != e && i->second.out && i->second.scope->parent_scope () == &p; ) + (i != e && + i->second.front () != nullptr && + i->second.front ()->parent_scope () == &p); ) { if (vb) { @@ -543,7 +545,7 @@ namespace build2 dump (const context& c, optional a) { auto i (c.scopes.begin ()); - assert (i->second.scope == &c.global_scope); + assert (i->second.front () == &c.global_scope); // We don't lock diag_stream here as dump() is supposed to be called from // the main thread prior/after to any other threads being spawned. @@ -559,7 +561,7 @@ namespace build2 { const scope_map& m (s.ctx.scopes); auto i (m.find_exact (s.out_path ())); - assert (i != m.end () && i->second.scope == &s); + assert (i != m.end () && i->second.front () == &s); string ind (cind); ostream& os (*diag_stream); -- cgit v1.1