1
Fork 0

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:
Noratrieb 2024-10-17 19:03:06 +02:00
parent a26450cf81
commit ba481518da
6 changed files with 13 additions and 3 deletions

View file

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