1
Fork 0

Don't return an error from get_or_default_sysroot

All callers unwrap the result.
This commit is contained in:
bjorn3 2025-03-07 17:09:20 +01:00
parent 0a679514d4
commit 7e8494f0a5
3 changed files with 22 additions and 31 deletions

View file

@ -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