From d593b19735eec451b091fd46e4cb066e3478d6c9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 29 Nov 2022 14:02:20 +0200 Subject: Move buildfiles to root_extra, use vector instead of unordered_set --- libbuild2/file.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbuild2/file.cxx') diff --git a/libbuild2/file.cxx b/libbuild2/file.cxx index 3ded45e..b93a20a 100644 --- a/libbuild2/file.cxx +++ b/libbuild2/file.cxx @@ -307,7 +307,7 @@ namespace build2 { tracer trace ("source_once"); - if (!once.buildfiles.insert (bf).second) + if (!once.root_extra->insert_buildfile (bf)) { l5 ([&]{trace << "skipping already sourced " << bf;}); return false; @@ -954,7 +954,7 @@ namespace build2 // process hard to reason about. But we may try to bootstrap the same // root scope multiple time. // - else if (rs.buildfiles.insert (bf).second) + else if (rs.root_extra->insert_buildfile (bf)) { // Extract the project name and amalgamation variable value so that // we can make them available while loading bootstrap.build. -- cgit v1.1