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/parser.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libbuild2/parser.cxx') diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx index b4df45b..29fe23f 100644 --- a/libbuild2/parser.cxx +++ b/libbuild2/parser.cxx @@ -3050,7 +3050,9 @@ namespace build2 l6 ([&]{trace (l) << "absolute path " << p;}); - if (!root_->buildfiles.insert (p).second) // Note: may be "new" root. + // Note: may be "new" root. + // + if (!root_->root_extra->insert_buildfile (p)) { l5 ([&]{trace (l) << "skipping already included " << p;}); continue; -- cgit v1.1