summaryrefslogtreecommitdiffstats
path: root/src/tools/cargo/src/doc/man/includes/options-target-triple.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/cargo/src/doc/man/includes/options-target-triple.md')
-rw-r--r--src/tools/cargo/src/doc/man/includes/options-target-triple.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tools/cargo/src/doc/man/includes/options-target-triple.md b/src/tools/cargo/src/doc/man/includes/options-target-triple.md
new file mode 100644
index 000000000..bb180f53d
--- /dev/null
+++ b/src/tools/cargo/src/doc/man/includes/options-target-triple.md
@@ -0,0 +1,16 @@
+{{#option "`--target` _triple_"}}
+{{actionverb}} for the given architecture.
+{{~#if target-default-to-all-arch}} The default is all architectures.
+{{~else}} The default is the host architecture.
+{{~/if}} The general format of the triple is
+`<arch><sub>-<vendor>-<sys>-<abi>`. Run `rustc --print target-list` for a
+list of supported targets.
+{{~#if multitarget }} This flag may be specified multiple times. {{~/if}}
+
+This may also be specified with the `build.target`
+[config value](../reference/config.html).
+
+Note that specifying this flag makes Cargo run in a different mode where the
+target artifacts are placed in a separate directory. See the
+[build cache](../guide/build-cache.html) documentation for more details.
+{{/option}}