From 61617d7bb990f04970c6357d8e9a9095174d8fc4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 26 Jun 2016 16:36:53 +0200 Subject: Minor module interface cleanups --- build2/cxx/module.cxx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'build2/cxx/module.cxx') 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 (l)) - load_module (false, "bin", r, b, loc); - } + if (!cast_false (b["bin.loaded"])) + load_module ("bin", r, b, loc); // Enter module variables. // -- cgit v1.1