deduplicate binary paths list

This commit is contained in:
pentarctagon 2024-06-21 15:48:55 -05:00 committed by Pentarctagon
parent cc3a02bd32
commit c6a4d1d4da

View file

@ -1668,7 +1668,11 @@ std::string get_binary_file_location(const std::string& type, const std::string&
}
std::string result;
for(const std::string& bp : get_binary_paths(type)) {
// fix for duplicate mainline paths on macOS for some reason
// would be good for someone who uses macOS to debug the cause at some point
const std::vector<std::string> temp = get_binary_paths(type);
const std::set<std::string> bpaths(temp.begin(), temp.end());
for(const std::string& bp : bpaths) {
bfs::path bpath(bp);
bpath /= filename;