X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flib%2Fbinary.cpp;h=9d73785911d806c9ff5746403b66b271990219a5;hb=fb227db74439dcece17291638b5587e11fcaf64f;hp=f245037b6b24abe35662b46ab04219dad5de7e7f;hpb=6fcd905aacf302540bbc3e84671dba9222e2d06b;p=builder.git diff --git a/source/lib/binary.cpp b/source/lib/binary.cpp index f245037..9d73785 100644 --- a/source/lib/binary.cpp +++ b/source/lib/binary.cpp @@ -28,9 +28,13 @@ Binary::Binary(Builder &b, const Component &c, const string &p, const vector tools; for(ObjectFile *o: objects) if(const Tool *obj_tool = o->get_tool()) - binfo.update_from(obj_tool->get_build_info()); + if(!any_equals(tools, obj_tool)) + tools.push_back(obj_tool); + for(const Tool *t: tools) + binfo.update_from(t->get_build_info()); Target::collect_build_info(binfo);