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
|
@ -813,6 +813,7 @@ pub struct PrintRequest {
|
|||
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
|
||||
pub enum PrintKind {
|
||||
FileNames,
|
||||
HostTuple,
|
||||
Sysroot,
|
||||
TargetLibdir,
|
||||
CrateName,
|
||||
|
@ -1945,6 +1946,7 @@ fn collect_print_requests(
|
|||
("crate-name", PrintKind::CrateName),
|
||||
("deployment-target", PrintKind::DeploymentTarget),
|
||||
("file-names", PrintKind::FileNames),
|
||||
("host-tuple", PrintKind::HostTuple),
|
||||
("link-args", PrintKind::LinkArgs),
|
||||
("native-static-libs", PrintKind::NativeStaticLibs),
|
||||
("relocation-models", PrintKind::RelocationModels),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue