aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/init.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-02 15:32:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-02 15:32:42 +0200
commit2069cbb8f72bceb0fcb968ba05968a24eeb0c15d (patch)
treeefbbe802bdf11c21fd9fb1943acf9c8beb9c59ed /build2/cc/init.cxx
parent9fa4b867890dfaa3fa086affec23049826765dfe (diff)
Unconditionally load bin.ar module in c and cxx modules
With our utility library/until test approach this will probably be more common than not.
Diffstat (limited to 'build2/cc/init.cxx')
-rw-r--r--build2/cc/init.cxx23
1 files changed, 5 insertions, 18 deletions
diff --git a/build2/cc/init.cxx b/build2/cc/init.cxx
index 698753e..bc598c3 100644
--- a/build2/cc/init.cxx
+++ b/build2/cc/init.cxx
@@ -209,14 +209,8 @@ namespace build2
// Load bin.*.config for bin.* modules we may need (see core_init()
// below).
//
- if (auto l = rs["config.bin.lib"])
- {
- if (cast<string> (l) != "shared")
- {
- if (!cast_false<bool> (rs["bin.ar.config.loaded"]))
- load_module (rs, rs, "bin.ar.config", loc);
- }
- }
+ if (!cast_false<bool> (rs["bin.ar.config.loaded"]))
+ load_module (rs, rs, "bin.ar.config", loc);
if (cid == "msvc")
{
@@ -281,17 +275,10 @@ namespace build2
const string& cid (cast<string> (rs["cc.id"]));
const string& tsys (cast<string> (rs["cc.target.system"]));
- // Load the bin.ar module unless we were asked to only build shared
- // libraries.
+ // Load the bin.ar module.
//
- if (auto l = rs["config.bin.lib"])
- {
- if (cast<string> (l) != "shared")
- {
- if (!cast_false<bool> (rs["bin.ar.loaded"]))
- load_module (rs, rs, "bin.ar", loc);
- }
- }
+ if (!cast_false<bool> (rs["bin.ar.loaded"]))
+ load_module (rs, rs, "bin.ar", loc);
// In the VC world you link things directly with link.exe so load the
// bin.ld module.