diff options
| author | Ramon de C Valle <rcvalle@users.noreply.github.com> | 2020-11-20 20:11:54 -0800 |
|---|---|---|
| committer | Ramon de C Valle <rcvalle@users.noreply.github.com> | 2021-01-27 19:27:23 -0800 |
| commit | 3f679fef23cd006c336e2a4f7c6707e119d22206 (patch) | |
| tree | 43f60f9b9b2a884e6aab8a53188f170a1d8b79ff /compiler/rustc_errors/src/snippet.rs | |
| parent | 432d116a5c2565774bae4c42fcacab8b685608b5 (diff) | |
| download | rust-3f679fef23cd006c336e2a4f7c6707e119d22206.tar.gz rust-3f679fef23cd006c336e2a4f7c6707e119d22206.zip | |
Fix rustc sysroot in systems using CAS
Change filesearch::get_or_default_sysroot() to check if sysroot is found using env::args().next() if rustc in argv[0] is a symlink; otherwise, or if it is not found, use env::current_exe() to imply sysroot. This makes the rustc binary able to locate Rust libraries in systems using content-addressable storage (CAS).
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions
