aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/parser.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx
index 23e9d0e..da017d3 100644
--- a/libbuild2/parser.cxx
+++ b/libbuild2/parser.cxx
@@ -2389,9 +2389,10 @@ namespace build2
{
// Only issue the warning for the projects being distributed. In
// particular, this makes sure we don't complain about imported
- // projects.
+ // projects. Note: use amalgamation to cover bundled subprojects.
//
- auto* dm (root_->find_module<dist::module> (dist::module::name));
+ auto* dm (root_->bundle_scope ()->find_module<dist::module> (
+ dist::module::name));
if (dm != nullptr && dm->distributed)
{