X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmsvclinker.cpp;h=78cf0b25b0d9fd5b395528c641111d877a7bb8df;hb=5e00719d0c63e306786ff36df61797cdbc86f3e9;hp=4495db7260f533b3a6842e7641e4da5af5a70b37;hpb=45dd0aa6e8f2107f1bd7d37fe4b171ee2259af60;p=builder.git diff --git a/source/msvclinker.cpp b/source/msvclinker.cpp index 4495db7..78cf0b2 100644 --- a/source/msvclinker.cpp +++ b/source/msvclinker.cpp @@ -1,6 +1,5 @@ #include #include -#include #include #include "builder.h" #include "component.h" @@ -29,12 +28,13 @@ MsvcLinker::MsvcLinker(Builder &b, const Architecture &a, const MicrosoftTools & set_command((ms_tools.get_vc_bin_dir()/"link.exe").str(), false); } -Target *MsvcLinker::create_target(const list &sources, const string &arg) +Target *MsvcLinker::create_target(const vector &sources, const string &arg) { if(sources.empty()) throw invalid_argument("MsvcLinker::create_target"); - list objs; + vector objs; + objs.reserve(sources.size()); for(Target *s: sources) objs.push_back(&dynamic_cast(*s)); @@ -78,7 +78,7 @@ void MsvcLinker::do_prepare() for(const FS::Path &p: system_path) { append(path, ";", p.str()); - builder.get_logger().log("tools", format("Got %s system path: %s", tag, p)); + builder.get_logger().log("tools", "Got %s system path: %s", tag, p); } setenv("LIB", path);