aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/file.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-11-29 14:02:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-11-29 14:03:21 +0200
commitd593b19735eec451b091fd46e4cb066e3478d6c9 (patch)
treebb9f4864745c0d7f71908f185734e01e9176cca0 /libbuild2/file.cxx
parentbd90dfbbbca15500b826eb9a4bb6959aedbe28f7 (diff)
Move buildfiles to root_extra, use vector instead of unordered_set
Diffstat (limited to 'libbuild2/file.cxx')
-rw-r--r--libbuild2/file.cxx4
1 files changed, 2 insertions, 2 deletions
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.