diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-01-04 16:04:39 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-01-04 16:04:39 +0200 |
commit | 759e714238438cccf74f035e1ba11c925b27cd55 (patch) | |
tree | 36683f9df793d0100f49189dad9cabf09be78d89 /build2/file.cxx | |
parent | b1ef30736694f644e2e473429257a18b64a7615c (diff) |
Load config.build in init(), not boot()
We now make sure the config module is init'ed first.
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. |