about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorNoratrieb <48135649+Noratrieb@users.noreply.github.com>2024-10-17 19:03:06 +0200
committerNoratrieb <48135649+Noratrieb@users.noreply.github.com>2024-11-02 21:29:59 +0100
commitba481518da240b5e532785fce51106c962dcd5fa (patch)
tree858624cc80629df52ed2ed500b2b6b710ecc9fa7 /src/doc
parenta26450cf81d67d68d3c6157579f8d968349129e7 (diff)
downloadrust-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 'src/doc')
-rw-r--r--src/doc/rustc/src/command-line-arguments.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/doc/rustc/src/command-line-arguments.md b/src/doc/rustc/src/command-line-arguments.md
index e5631ba4274..f38d34fccd4 100644
--- a/src/doc/rustc/src/command-line-arguments.md
+++ b/src/doc/rustc/src/command-line-arguments.md
@@ -256,7 +256,8 @@ The valid types of print values are:
 - `crate-name` — The name of the crate.
 - `file-names` — The names of the files created by the `link` emit kind.
 - `sysroot` — Path to the sysroot.
-- `target-libdir` - Path to the target libdir.
+- `target-libdir` — Path to the target libdir.
+- `host-tuple` — The target-tuple string of the host compiler (e.g. `x86_64-unknown-linux-gnu`)
 - `cfg` — List of cfg values. See [conditional compilation] for more
   information about cfg values.
 - `target-list` — List of known targets. The target may be selected with the
@@ -286,7 +287,7 @@ The valid types of print values are:
   exact format of this debugging output is not a stable guarantee, other than
   that it will include the linker executable and the text of each command-line
   argument passed to the linker.
-- `deployment-target` - The currently selected [deployment target] (or minimum OS version)
+- `deployment-target` — The currently selected [deployment target] (or minimum OS version)
   for the selected Apple platform target. This value can be used or passed along to other
   components alongside a Rust build that need this information, such as C compilers.
   This returns rustc's minimum supported deployment target if no `*_DEPLOYMENT_TARGET` variable