diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-03-13 11:28:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-13 11:28:35 +0100 |
| commit | ad23e9d705a42cefee332c1a5a0f405856968ddb (patch) | |
| tree | 1d031cfa17d6986a35878c166d8dda36431a233f /compiler/rustc_codegen_ssa/src | |
| parent | 459d5b5807fff8c2065e14fd17ace408c92c37c6 (diff) | |
| parent | 1543256e6f5f8a46e5acbee7bcb39354ece10010 (diff) | |
| download | rust-ad23e9d705a42cefee332c1a5a0f405856968ddb.tar.gz rust-ad23e9d705a42cefee332c1a5a0f405856968ddb.zip | |
Rollup merge of #138404 - bjorn3:sysroot_handling_cleanup, r=petrochenkov,jieyouxu
Cleanup sysroot locating a bit All commits should preserve existing behavior.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/link.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs index 7d9971c021d..62ed880478b 100644 --- a/compiler/rustc_codegen_ssa/src/back/link.rs +++ b/compiler/rustc_codegen_ssa/src/back/link.rs @@ -1286,8 +1286,7 @@ fn link_sanitizer_runtime( if path.exists() { sess.target_tlib_path.dir.clone() } else { - let default_sysroot = - filesearch::get_or_default_sysroot().expect("Failed finding sysroot"); + let default_sysroot = filesearch::get_or_default_sysroot(); let default_tlib = filesearch::make_target_lib_path(&default_sysroot, sess.opts.target_triple.tuple()); default_tlib |
