X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmingwdlltool.cpp;h=922fe51a10b724c5daa0608e55e5efb90e2392fc;hb=aa053d637e8259755af7d2e4b510a242f4d29c7b;hp=dc9022e12378c06b56016fbb00e12a0596beb3b1;hpb=9f885c3eec8f065b7dc400acfb9dd67158284fcf;p=builder.git diff --git a/source/mingwdlltool.cpp b/source/mingwdlltool.cpp index dc9022e..922fe51 100644 --- a/source/mingwdlltool.cpp +++ b/source/mingwdlltool.cpp @@ -21,13 +21,14 @@ MingwDllTool::MingwDllTool(Builder &b, const Architecture &a): set_command("dlltool", true); } -Target *MingwDllTool::create_target(const list &sources, const string &) +Target *MingwDllTool::create_target(const vector &sources, const string &) { if(sources.size()!=1) throw invalid_argument("MingwDllTool::create_target"); SharedLibrary &shlib = dynamic_cast(*sources.front()); - list objs; + vector objs; + objs.reserve(shlib.get_dependencies().size()); for(Target *d: shlib.get_dependencies()) if(ObjectFile *obj = dynamic_cast(d)) objs.push_back(obj);