diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2024-04-12 17:01:46 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2024-04-12 17:28:00 +0300 |
| commit | ed62b57c86a7d2985a4eae817bbce807f1ca957e (patch) | |
| tree | de7a480c7f36e1347658c1d32c71949c577d0fa1 /compiler/rustc_interface/src | |
| parent | 7bdae134cba57426d3c56b5de737a351762445e1 (diff) | |
| download | rust-ed62b57c86a7d2985a4eae817bbce807f1ca957e.tar.gz rust-ed62b57c86a7d2985a4eae817bbce807f1ca957e.zip | |
linker: Remove laziness and caching from native search directory walks
It shouldn't be necessary for performance now.
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index fe546d05ff2..91cef02c7d1 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -171,7 +171,7 @@ fn configure_and_expand( if cfg!(windows) { old_path = env::var_os("PATH").unwrap_or(old_path); let mut new_path = Vec::from_iter( - sess.host_filesearch(PathKind::All).search_path_dirs().map(|p| p.to_owned()), + sess.host_filesearch(PathKind::All).search_paths().map(|p| p.dir.clone()), ); for path in env::split_paths(&old_path) { if !new_path.contains(&path) { |
