From 02d902cb8e5e69b123fcdf170e5eeb9ca5605304 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 15 May 2020 12:11:30 +0200 Subject: Amalgamation cutoff support Now a project that disables amalgamation will not logically "see" an outer project even if it's physically inside its scope. --- libbuild2/dump.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libbuild2/dump.cxx') diff --git a/libbuild2/dump.cxx b/libbuild2/dump.cxx index e253988..8ee68b7 100644 --- a/libbuild2/dump.cxx +++ b/libbuild2/dump.cxx @@ -400,6 +400,11 @@ namespace build2 // Nested scopes of which we are an immediate parent. // + // Note that because we use the logical (rather than physical) parent, we + // will be printing the logical scope hierarchy (i.e., a project with + // disabled amalgamation will be printed directly inside the global + // scope). + // for (auto e (p.ctx.scopes.end ()); i != e && i->second.parent_scope () == &p; ) { -- cgit v1.1