diff options
Diffstat (limited to 'build2/cxx/module.cxx')
-rw-r--r-- | build2/cxx/module.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build2/cxx/module.cxx b/build2/cxx/module.cxx index caeea9b..a4afe44 100644 --- a/build2/cxx/module.cxx +++ b/build2/cxx/module.cxx @@ -256,6 +256,7 @@ namespace build2 } } + const string& cid (cast<string> (r["cxx.id"])); const string& tsys (cast<string> (r["cxx.target.system"])); const string& tclass (cast<string> (r["cxx.target.class"])); @@ -277,6 +278,14 @@ namespace build2 info << "cxx.target is " << ct; } + // In the VC world you link things directly with link.exe. + // + if (cid == "msvc") + { + if (!cast_false<bool> (b["bin.ld.loaded"])) + load_module ("bin.ld", r, b, loc, false, bin_hints); + } + // If our target is MinGW, then we will need the resource compiler // (windres) in order to embed the manifest. // |