- /* 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);