about summary refs log tree commit diff
path: root/src/librustc_session/filesearch.rs
AgeCommit message (Collapse)AuthorLines
2020-08-30mv compiler to compiler/mark-171/+0
2020-08-15replaced log with tracingGurpreet Singh-1/+1
2020-08-07fix clippy::redundant_clone: remove redundant clonesMatthias Krüger-1/+1
2020-07-30rustc: Ignore fs::canonicalize errors in metadataAlex Crichton-19/+13
This commit updates the metadata location logic to ignore errors when calling `fs::canonicalize`. Canonicalization was added historically so multiple `-L` paths to the same directory don't print errors about multiple candidates (since rustc can deduplicate same-named paths), but canonicalization doesn't work on all filesystems. Cargo, for example, always uses this sort of fallback where it will opportunitistically try to canonicalize but fall back to using the input path if it otherwise doesn't work. If rustc is run on a filesystem that doesn't support canonicalization then the effect of this change will be that `-L` paths which logically point to the same directory will cause errors, but that's a rare enough occurrence it shouldn't cause much issue in practice. Otherwise rustc doesn't work at all today on those sorts of filesystem where canonicalization isn't supported!
2020-06-25Rename get_self_contained_lib_pathMateusz Mikuła-1/+1
2020-06-25Add unstable rustc option to control self-contained linkage modeMateusz Mikuła-2/+2
2020-06-11Move shipped MinGW linker to self-contained dirMateusz Mikuła-1/+1
2020-06-11Get self-contained directory path via dedicated functionMateusz Mikuła-0/+4
2020-04-07Speed up path searching with `find_library_crate`.Nicholas Nethercote-11/+11
By doing prefix and suffix checking on a `String` copy of each relevant `PathBuf`, rather than the `PathBuf` itself.
2020-04-03Minor follow-up after renaming librustc(_middle)Yuki Okushi-2/+2
2020-03-30rustc -> rustc_middle part 1Mazdak Farrokhzad-1/+1
2019-12-22Format the worldMark Rousskov-30/+29
2019-12-03Move Session to librustc_sessionMark Rousskov-0/+174