diff options
Diffstat (limited to 'build2/cxx/module.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. // |