diff options
Diffstat (limited to 'build2/file.cxx')
-rw-r--r-- | build2/file.cxx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/build2/file.cxx b/build2/file.cxx index edd3e28..e18ae5e 100644 --- a/build2/file.cxx +++ b/build2/file.cxx @@ -879,14 +879,18 @@ namespace build2 // for (auto& p: root.modules) { - const string& n (p.first); module_state& s (p.second); - if (s.boot) - { - load_module (root, root, n, s.loc); - assert (!s.boot); - } + if (s.boot && s.first) + load_module (root, root, p.first, s.loc); + } + + for (auto& p: root.modules) + { + module_state& s (p.second); + + if (s.boot && !s.first) + load_module (root, root, p.first, s.loc); } // Load root.build. |