diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-08-16 09:16:04 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-08-16 09:16:04 +0200 |
commit | 50bf3956c88ee6341d0023a421d502d604e3da4f (patch) | |
tree | 5623ab17dc95485d1930f72e6577d95868caef47 /libbuild2/file.cxx | |
parent | bcb9588ea24d32055c5cc0493efc737b168f4978 (diff) |
Redo modules map as vector
Diffstat (limited to 'libbuild2/file.cxx')
-rw-r--r-- | libbuild2/file.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libbuild2/file.cxx b/libbuild2/file.cxx index 81fca32..171d136 100644 --- a/libbuild2/file.cxx +++ b/libbuild2/file.cxx @@ -1448,20 +1448,16 @@ namespace build2 // Finish off initializing bootstrapped modules. // - for (auto& p: root.root_extra->modules) + for (auto& s: root.root_extra->modules) { - module_state& s (p.second); - if (s.boot && s.first) - init_module (root, root, p.first, s.loc); + init_module (root, root, s.name, s.loc); } - for (auto& p: root.root_extra->modules) + for (auto& s: root.root_extra->modules) { - module_state& s (p.second); - if (s.boot && !s.first) - init_module (root, root, p.first, s.loc); + init_module (root, root, s.name, s.loc); } // Load hooks and root.build. |