1
Fork 0

linker: Remove laziness and caching from native search directory walks

It shouldn't be necessary for performance now.
This commit is contained in:
Vadim Petrochenkov 2024-04-12 17:01:46 +03:00
parent 7bdae134cb
commit ed62b57c86
5 changed files with 22 additions and 121 deletions

View file

@ -45,11 +45,6 @@ impl<'a> FileSearch<'a> {
debug!("using sysroot = {}, triple = {}", sysroot.display(), triple);
FileSearch { sysroot, triple, search_paths, tlib_path, kind }
}
/// Returns just the directories within the search paths.
pub fn search_path_dirs(&self) -> impl Iterator<Item = &'a Path> {
self.search_paths().map(|sp| &*sp.dir)
}
}
pub fn make_target_lib_path(sysroot: &Path, target_triple: &str) -> PathBuf {