diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-06-26 16:36:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-06-26 16:36:53 +0200 |
commit | 61617d7bb990f04970c6357d8e9a9095174d8fc4 (patch) | |
tree | c73f266c027d09dd1d0cd4d4233e8fc70ce27447 /build2/cxx | |
parent | 4d1c02b736f4c1e827b11085cdc83ce4b46c03d1 (diff) |
Minor module interface cleanups
Diffstat (limited to 'build2/cxx')
-rw-r--r-- | build2/cxx/module.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/build2/cxx/module.cxx b/build2/cxx/module.cxx index b4ce142..c03763f 100644 --- a/build2/cxx/module.cxx +++ b/build2/cxx/module.cxx @@ -40,15 +40,11 @@ namespace build2 tracer trace ("cxx::init"); l5 ([&]{trace << "for " << b.out_path ();}); - // Initialize the bin module. Only do this if it hasn't already - // been loaded so that we don't overwrite user's bin.* settings. + // Initialize the bin module. Only do this if it hasn't already been + // loaded so that we don't overwrite user's bin.* settings. // - { - auto l (b["bin.loaded"]); - - if (!l || !cast<bool> (l)) - load_module (false, "bin", r, b, loc); - } + if (!cast_false<bool> (b["bin.loaded"])) + load_module ("bin", r, b, loc); // Enter module variables. // |