diff options
| author | Noratrieb <48135649+Noratrieb@users.noreply.github.com> | 2024-10-17 19:03:06 +0200 |
|---|---|---|
| committer | Noratrieb <48135649+Noratrieb@users.noreply.github.com> | 2024-11-02 21:29:59 +0100 |
| commit | ba481518da240b5e532785fce51106c962dcd5fa (patch) | |
| tree | 858624cc80629df52ed2ed500b2b6b710ecc9fa7 /compiler/rustc_driver_impl/src | |
| parent | a26450cf81d67d68d3c6157579f8d968349129e7 (diff) | |
| download | rust-ba481518da240b5e532785fce51106c962dcd5fa.tar.gz rust-ba481518da240b5e532785fce51106c962dcd5fa.zip | |
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.
Diffstat (limited to 'compiler/rustc_driver_impl/src')
| -rw-r--r-- | compiler/rustc_driver_impl/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs index 97210d9a662..4362007d4ba 100644 --- a/compiler/rustc_driver_impl/src/lib.rs +++ b/compiler/rustc_driver_impl/src/lib.rs @@ -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 => { |
