Use Lrc instead of Option to avoid duplication of a SearchPath
This commit is contained in:
parent
58000ed0e9
commit
d7ef0b30e8
2 changed files with 9 additions and 12 deletions
|
@ -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(|| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue