Use Lrc instead of Option to avoid duplication of a SearchPath

This commit is contained in:
bjorn3 2021-09-01 13:39:48 +02:00
parent 58000ed0e9
commit d7ef0b30e8
2 changed files with 9 additions and 12 deletions

View file

@ -677,10 +677,7 @@ impl RustcDefaultCalls {
println!("{}", targets.join("\n"));
}
Sysroot => println!("{}", sess.sysroot.display()),
TargetLibdir => println!(
"{}",
sess.target_tlib_path.as_ref().unwrap_or(&sess.host_tlib_path).dir.display()
),
TargetLibdir => println!("{}", sess.target_tlib_path.dir.display()),
TargetSpec => println!("{}", sess.target.to_json().pretty()),
FileNames | CrateName => {
let input = input.unwrap_or_else(|| {