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/module.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/module.cxx')
-rw-r--r-- | build2/module.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/build2/module.cxx b/build2/module.cxx index 7a35008..9994c9b 100644 --- a/build2/module.cxx +++ b/build2/module.cxx @@ -45,8 +45,9 @@ namespace build2 if (mf.boot == nullptr) fail (loc) << "module " << name << " shouldn't be loaded in bootstrap"; - i = lm.emplace (name, module_state {true, mf.init, nullptr, loc}).first; - mf.boot (rs, loc, i->second.module); + i = lm.emplace (name, + module_state {true, false, mf.init, nullptr, loc}).first; + i->second.first = mf.boot (rs, loc, i->second.module); } bool @@ -82,7 +83,8 @@ namespace build2 fail (loc) << "module " << name << " should be loaded in bootstrap"; i = lm.emplace ( - name, module_state {false, mf.init, nullptr, loc}).first; + name, + module_state {false, false, mf.init, nullptr, loc}).first; } } else |