X-Git-Url: http://git.tdb.fi/?p=builder.git;a=blobdiff_plain;f=source%2Flib%2Fbinarycomponent.cpp;fp=source%2Flib%2Fbinarycomponent.cpp;h=408ea464d9ef5a01dad5f1dfdb03b7d7a88c7fac;hp=c626536a2317622a1ebffdac3a3b6633921f7a0a;hb=f4de41c810319d3ecc8bb5084de06a953037b7b7;hpb=7bd3e51a9ec3be0d3670a36866e41517c3b7148a diff --git a/source/lib/binarycomponent.cpp b/source/lib/binarycomponent.cpp index c626536..408ea46 100644 --- a/source/lib/binarycomponent.cpp +++ b/source/lib/binarycomponent.cpp @@ -14,14 +14,6 @@ void BinaryComponent::create_build_info() for(const Component *u: uses) { - /* Select an include path that contains all the sources for this and the - used component. This should produce a sensible result in most cases. */ - FS::Path base; - for(const FS::Path &s: sources) - base = base.empty() ? s : FS::common_ancestor(base, s); - for(const FS::Path &s: u->get_sources()) - base = FS::common_ancestor(base, s); - build_info.incpath.push_back(base); build_info.libs.push_back(u->get_name()); if(!u->get_install()) {