Add --print host-triple
People often parse `-vV` output to get to the host triple, which is annoying to do. It's easier to just get it directly.
This commit is contained in:
parent
a26450cf81
commit
ba481518da
6 changed files with 13 additions and 3 deletions
|
@ -731,6 +731,7 @@ fn print_crate_info(
|
|||
targets.sort_unstable();
|
||||
println_info!("{}", targets.join("\n"));
|
||||
}
|
||||
HostTuple => println_info!("{}", rustc_session::config::host_tuple()),
|
||||
Sysroot => println_info!("{}", sess.sysroot.display()),
|
||||
TargetLibdir => println_info!("{}", sess.target_tlib_path.dir.display()),
|
||||
TargetSpec => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue