diff options
| author | bors <bors@rust-lang.org> | 2021-02-05 22:58:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-02-05 22:58:13 +0000 |
| commit | 16b805713c4cdb967263b9d59634fddea4372b65 (patch) | |
| tree | 2d14c5badf900950cd3696360518281978f70e69 /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | 23adf9fd843da7a3394c824b056f93151aaa40ad (diff) | |
| parent | 3f679fef23cd006c336e2a4f7c6707e119d22206 (diff) | |
| download | rust-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_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions
