@@ -45,18 +45,30 @@ OPTIONS
4545 target in the root of the workspace.
4646
4747 --target triple
48- Clean for the given architecture. The default is the host
49- architecture. The general format of the triple is
50- <arch><sub>-<vendor>-<sys>-<abi>. Run rustc --print target-list for
51- a list of supported targets. This flag may be specified multiple
52- times.
48+ Clean for the specified target (may be specified multiple times) The
49+ default is the host architecture. The general format of the triple
50+ is <arch><sub>-<vendor>-<sys>-<abi>.
51+
52+ You may specify the following kinds of targets:
53+
54+ o Any supported target in rustc --print target-list (note: you have
55+ to install/add the target to use it).
56+
57+ o host, which will internally be substituted by the host’s
58+ target. This can be particularly useful if you’re
59+ cross-compiling some crates, and don’t want to specify your
60+ host’s machine as a target (for instance, an xtask in a shared
61+ project that may be worked on by many hosts).
62+
63+ o A path to a custom target specification (further reading here
64+ <https://doc.rust-lang.org/rustc/targets/custom.html#custom-target-lookup-path>).
5365
5466 This may also be specified with the build.target config value
5567 <https://doc.rust-lang.org/cargo/reference/config.html>.
5668
57- Note that specifying this flag makes Cargo run in a different mode
58- where the target artifacts are placed in a separate directory. See
59- the build cache
69+ Note: Specifying this flag makes Cargo run in a different mode where
70+ the target artifacts are placed in a separate directory. See the
71+ build cache
6072 <https://doc.rust-lang.org/cargo/reference/build-cache.html>
6173 documentation for more details.
6274
0 commit comments