about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/snippet.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-02-05 22:58:13 +0000
committerbors <bors@rust-lang.org>2021-02-05 22:58:13 +0000
commit16b805713c4cdb967263b9d59634fddea4372b65 (patch)
tree2d14c5badf900950cd3696360518281978f70e69 /compiler/rustc_errors/src/snippet.rs
parent23adf9fd843da7a3394c824b056f93151aaa40ad (diff)
parent3f679fef23cd006c336e2a4f7c6707e119d22206 (diff)
downloadrust-16b805713c4cdb967263b9d59634fddea4372b65.tar.gz
rust-16b805713c4cdb967263b9d59634fddea4372b65.zip
Auto merge of #79253 - rcvalle:fix-rustc-sysroot-cas, r=nagisa
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