tool->prepare();
- list<FS::Path> combined_path(path.begin(), path.end());
+ SearchPath combined_path = path;
if(use_syspath)
{
- const Tool::SearchPath &syspath = tool->get_system_path();
+ const SearchPath &syspath = tool->get_system_path();
combined_path.insert(combined_path.end(), syspath.begin(), syspath.end());
}
FileTarget *VirtualFileSystem::find_library(const string &lib, const SearchPath &path, BuildInfo::LibraryMode mode, bool use_syspath)
{
- list<FS::Path> combined_path(path.begin(), path.end());
+ SearchPath combined_path = path;
if(use_syspath)
{
Tool &linker = builder.get_toolchain().get_tool("LINK");
linker.prepare();
- const Tool::SearchPath &syspath = linker.get_system_path();
+ const SearchPath &syspath = linker.get_system_path();
combined_path.insert(combined_path.end(), syspath.begin(), syspath.end());
}