mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
fix: use host-tuple
for host target subsitution
The "host" string is ambiguous * We have `-Zhost-config` that config `[host]` table applies to artifacts running on host, such as build scripts and proc macros. * `host` sounds like the default behavior, whereas `--target host` is in the cross-compilation mode: `target/<triple>/debug`. * We might want to reserve `host` for future use
This commit is contained in:
parent
b4cdb55eda
commit
a5c8b96f82
@ -87,10 +87,10 @@ impl CompileKind {
|
|||||||
let deduplicated_targets = targets
|
let deduplicated_targets = targets
|
||||||
.iter()
|
.iter()
|
||||||
.map(|value| {
|
.map(|value| {
|
||||||
// This neatly substitutes the manually-specified `host` target directive
|
// This neatly substitutes the manually-specified `host-tuple` target directive
|
||||||
// with the compiling machine's target triple.
|
// with the compiling machine's target triple.
|
||||||
|
|
||||||
if value.as_str() == "host" {
|
if value.as_str() == "host-tuple" {
|
||||||
let host_triple = env!("RUST_HOST_TARGET");
|
let host_triple = env!("RUST_HOST_TARGET");
|
||||||
Ok(CompileKind::Target(CompileTarget::new(host_triple)?))
|
Ok(CompileKind::Target(CompileTarget::new(host_triple)?))
|
||||||
} else {
|
} else {
|
||||||
|
@ -1263,10 +1263,12 @@ fn get_target_triples() -> Vec<clap_complete::CompletionCandidate> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Allow tab-completion for `host` as the desired target.
|
// Allow tab-completion for `host-tuple` as the desired target.
|
||||||
candidates.push(clap_complete::CompletionCandidate::new("host").help(Some(
|
candidates.push(
|
||||||
concat!("alias for: ", env!("RUST_HOST_TARGET")).into(),
|
clap_complete::CompletionCandidate::new("host-tuple").help(Some(
|
||||||
)));
|
concat!("alias for: ", env!("RUST_HOST_TARGET")).into(),
|
||||||
|
)),
|
||||||
|
);
|
||||||
|
|
||||||
candidates
|
candidates
|
||||||
}
|
}
|
||||||
|
@ -228,8 +228,8 @@ OPTIONS
|
|||||||
|
|
||||||
o Any supported target in rustc --print target-list.
|
o Any supported target in rustc --print target-list.
|
||||||
|
|
||||||
o "host", which will internally be substituted by the host’s
|
o "host-tuple", which will internally be substituted by the
|
||||||
target. This can be particularly useful if you’re
|
host’s target. This can be particularly useful if you’re
|
||||||
cross-compiling some crates, and don’t want to specify your
|
cross-compiling some crates, and don’t want to specify your
|
||||||
host’s machine as a target (for instance, an xtask in a shared
|
host’s machine as a target (for instance, an xtask in a shared
|
||||||
project that may be worked on by many hosts).
|
project that may be worked on by many hosts).
|
||||||
|
@ -145,8 +145,8 @@ OPTIONS
|
|||||||
|
|
||||||
o Any supported target in rustc --print target-list.
|
o Any supported target in rustc --print target-list.
|
||||||
|
|
||||||
o "host", which will internally be substituted by the host’s
|
o "host-tuple", which will internally be substituted by the
|
||||||
target. This can be particularly useful if you’re
|
host’s target. This can be particularly useful if you’re
|
||||||
cross-compiling some crates, and don’t want to specify your
|
cross-compiling some crates, and don’t want to specify your
|
||||||
host’s machine as a target (for instance, an xtask in a shared
|
host’s machine as a target (for instance, an xtask in a shared
|
||||||
project that may be worked on by many hosts).
|
project that may be worked on by many hosts).
|
||||||
|
@ -142,8 +142,8 @@ OPTIONS
|
|||||||
|
|
||||||
o Any supported target in rustc --print target-list.
|
o Any supported target in rustc --print target-list.
|
||||||
|
|
||||||
o "host", which will internally be substituted by the host’s
|
o "host-tuple", which will internally be substituted by the
|
||||||
target. This can be particularly useful if you’re
|
host’s target. This can be particularly useful if you’re
|
||||||
cross-compiling some crates, and don’t want to specify your
|
cross-compiling some crates, and don’t want to specify your
|
||||||
host’s machine as a target (for instance, an xtask in a shared
|
host’s machine as a target (for instance, an xtask in a shared
|
||||||
project that may be worked on by many hosts).
|
project that may be worked on by many hosts).
|
||||||
|
@ -53,8 +53,8 @@ OPTIONS
|
|||||||
|
|
||||||
o Any supported target in rustc --print target-list.
|
o Any supported target in rustc --print target-list.
|
||||||
|
|
||||||
o "host", which will internally be substituted by the host’s
|
o "host-tuple", which will internally be substituted by the
|
||||||
target. This can be particularly useful if you’re
|
host’s target. This can be particularly useful if you’re
|
||||||
cross-compiling some crates, and don’t want to specify your
|
cross-compiling some crates, and don’t want to specify your
|
||||||
host’s machine as a target (for instance, an xtask in a shared
|
host’s machine as a target (for instance, an xtask in a shared
|
||||||
project that may be worked on by many hosts).
|
project that may be worked on by many hosts).
|
||||||
|
@ -124,8 +124,8 @@ OPTIONS
|
|||||||
|
|
||||||
o Any supported target in rustc --print target-list.
|
o Any supported target in rustc --print target-list.
|
||||||
|
|
||||||
o "host", which will internally be substituted by the host’s
|
o "host-tuple", which will internally be substituted by the
|
||||||
target. This can be particularly useful if you’re
|
host’s target. This can be particularly useful if you’re
|
||||||
cross-compiling some crates, and don’t want to specify your
|
cross-compiling some crates, and don’t want to specify your
|
||||||
host’s machine as a target (for instance, an xtask in a shared
|
host’s machine as a target (for instance, an xtask in a shared
|
||||||
project that may be worked on by many hosts).
|
project that may be worked on by many hosts).
|
||||||
|
@ -33,8 +33,8 @@ OPTIONS
|
|||||||
|
|
||||||
o Any supported target in rustc --print target-list.
|
o Any supported target in rustc --print target-list.
|
||||||
|
|
||||||
o "host", which will internally be substituted by the host’s
|
o "host-tuple", which will internally be substituted by the
|
||||||
target. This can be particularly useful if you’re
|
host’s target. This can be particularly useful if you’re
|
||||||
cross-compiling some crates, and don’t want to specify your
|
cross-compiling some crates, and don’t want to specify your
|
||||||
host’s machine as a target (for instance, an xtask in a shared
|
host’s machine as a target (for instance, an xtask in a shared
|
||||||
project that may be worked on by many hosts).
|
project that may be worked on by many hosts).
|
||||||
|
@ -216,8 +216,8 @@ OPTIONS
|
|||||||
|
|
||||||
o Any supported target in rustc --print target-list.
|
o Any supported target in rustc --print target-list.
|
||||||
|
|
||||||
o "host", which will internally be substituted by the host’s
|
o "host-tuple", which will internally be substituted by the
|
||||||
target. This can be particularly useful if you’re
|
host’s target. This can be particularly useful if you’re
|
||||||
cross-compiling some crates, and don’t want to specify your
|
cross-compiling some crates, and don’t want to specify your
|
||||||
host’s machine as a target (for instance, an xtask in a shared
|
host’s machine as a target (for instance, an xtask in a shared
|
||||||
project that may be worked on by many hosts).
|
project that may be worked on by many hosts).
|
||||||
|
@ -194,8 +194,8 @@ OPTIONS
|
|||||||
|
|
||||||
o Any supported target in rustc --print target-list.
|
o Any supported target in rustc --print target-list.
|
||||||
|
|
||||||
o "host", which will internally be substituted by the host’s
|
o "host-tuple", which will internally be substituted by the
|
||||||
target. This can be particularly useful if you’re
|
host’s target. This can be particularly useful if you’re
|
||||||
cross-compiling some crates, and don’t want to specify your
|
cross-compiling some crates, and don’t want to specify your
|
||||||
host’s machine as a target (for instance, an xtask in a shared
|
host’s machine as a target (for instance, an xtask in a shared
|
||||||
project that may be worked on by many hosts).
|
project that may be worked on by many hosts).
|
||||||
|
@ -196,8 +196,8 @@ OPTIONS
|
|||||||
|
|
||||||
o Any supported target in rustc --print target-list.
|
o Any supported target in rustc --print target-list.
|
||||||
|
|
||||||
o "host", which will internally be substituted by the host’s
|
o "host-tuple", which will internally be substituted by the
|
||||||
target. This can be particularly useful if you’re
|
host’s target. This can be particularly useful if you’re
|
||||||
cross-compiling some crates, and don’t want to specify your
|
cross-compiling some crates, and don’t want to specify your
|
||||||
host’s machine as a target (for instance, an xtask in a shared
|
host’s machine as a target (for instance, an xtask in a shared
|
||||||
project that may be worked on by many hosts).
|
project that may be worked on by many hosts).
|
||||||
|
@ -117,8 +117,8 @@ OPTIONS
|
|||||||
|
|
||||||
o Any supported target in rustc --print target-list.
|
o Any supported target in rustc --print target-list.
|
||||||
|
|
||||||
o "host", which will internally be substituted by the host’s
|
o "host-tuple", which will internally be substituted by the
|
||||||
target. This can be particularly useful if you’re
|
host’s target. This can be particularly useful if you’re
|
||||||
cross-compiling some crates, and don’t want to specify your
|
cross-compiling some crates, and don’t want to specify your
|
||||||
host’s machine as a target (for instance, an xtask in a shared
|
host’s machine as a target (for instance, an xtask in a shared
|
||||||
project that may be worked on by many hosts).
|
project that may be worked on by many hosts).
|
||||||
|
@ -69,8 +69,8 @@ OPTIONS
|
|||||||
|
|
||||||
o Any supported target in rustc --print target-list.
|
o Any supported target in rustc --print target-list.
|
||||||
|
|
||||||
o "host", which will internally be substituted by the host’s
|
o "host-tuple", which will internally be substituted by the
|
||||||
target. This can be particularly useful if you’re
|
host’s target. This can be particularly useful if you’re
|
||||||
cross-compiling some crates, and don’t want to specify your
|
cross-compiling some crates, and don’t want to specify your
|
||||||
host’s machine as a target (for instance, an xtask in a shared
|
host’s machine as a target (for instance, an xtask in a shared
|
||||||
project that may be worked on by many hosts).
|
project that may be worked on by many hosts).
|
||||||
|
@ -136,8 +136,8 @@ OPTIONS
|
|||||||
|
|
||||||
o Any supported target in rustc --print target-list.
|
o Any supported target in rustc --print target-list.
|
||||||
|
|
||||||
o "host", which will internally be substituted by the host’s
|
o "host-tuple", which will internally be substituted by the
|
||||||
target. This can be particularly useful if you’re
|
host’s target. This can be particularly useful if you’re
|
||||||
cross-compiling some crates, and don’t want to specify your
|
cross-compiling some crates, and don’t want to specify your
|
||||||
host’s machine as a target (for instance, an xtask in a shared
|
host’s machine as a target (for instance, an xtask in a shared
|
||||||
project that may be worked on by many hosts).
|
project that may be worked on by many hosts).
|
||||||
|
@ -136,8 +136,8 @@ OPTIONS
|
|||||||
|
|
||||||
o Any supported target in rustc --print target-list.
|
o Any supported target in rustc --print target-list.
|
||||||
|
|
||||||
o "host", which will internally be substituted by the host’s
|
o "host-tuple", which will internally be substituted by the
|
||||||
target. This can be particularly useful if you’re
|
host’s target. This can be particularly useful if you’re
|
||||||
cross-compiling some crates, and don’t want to specify your
|
cross-compiling some crates, and don’t want to specify your
|
||||||
host’s machine as a target (for instance, an xtask in a shared
|
host’s machine as a target (for instance, an xtask in a shared
|
||||||
project that may be worked on by many hosts).
|
project that may be worked on by many hosts).
|
||||||
|
@ -250,8 +250,8 @@ OPTIONS
|
|||||||
|
|
||||||
o Any supported target in rustc --print target-list.
|
o Any supported target in rustc --print target-list.
|
||||||
|
|
||||||
o "host", which will internally be substituted by the host’s
|
o "host-tuple", which will internally be substituted by the
|
||||||
target. This can be particularly useful if you’re
|
host’s target. This can be particularly useful if you’re
|
||||||
cross-compiling some crates, and don’t want to specify your
|
cross-compiling some crates, and don’t want to specify your
|
||||||
host’s machine as a target (for instance, an xtask in a shared
|
host’s machine as a target (for instance, an xtask in a shared
|
||||||
project that may be worked on by many hosts).
|
project that may be worked on by many hosts).
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
Possible values:
|
Possible values:
|
||||||
- Any supported target in `rustc --print target-list`.
|
- Any supported target in `rustc --print target-list`.
|
||||||
- `"host"`, which will internally be substituted by the host's target. This can be particularly useful if you're cross-compiling some crates, and don't want to specify your host's machine as a target (for instance, an `xtask` in a shared project that may be worked on by many hosts).
|
- `"host-tuple"`, which will internally be substituted by the host's target. This can be particularly useful if you're cross-compiling some crates, and don't want to specify your host's machine as a target (for instance, an `xtask` in a shared project that may be worked on by many hosts).
|
||||||
- A path to a custom target specification. See [Custom Target Lookup Path](../../rustc/targets/custom.html#custom-target-lookup-path) for more information.
|
- A path to a custom target specification. See [Custom Target Lookup Path](../../rustc/targets/custom.html#custom-target-lookup-path) for more information.
|
||||||
|
|
||||||
|
|
||||||
|
@ -261,7 +261,7 @@ be specified multiple times, which enables all specified features.</dd>
|
|||||||
<p>Possible values:</p>
|
<p>Possible values:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
||||||
<li><code>"host"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
<li><code>"host-tuple"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
||||||
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
||||||
|
@ -176,7 +176,7 @@ be specified multiple times, which enables all specified features.</dd>
|
|||||||
<p>Possible values:</p>
|
<p>Possible values:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
||||||
<li><code>"host"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
<li><code>"host-tuple"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
||||||
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
||||||
|
@ -172,7 +172,7 @@ be specified multiple times, which enables all specified features.</dd>
|
|||||||
<p>Possible values:</p>
|
<p>Possible values:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
||||||
<li><code>"host"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
<li><code>"host-tuple"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
||||||
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
||||||
|
@ -64,7 +64,7 @@ Defaults to <code>target</code> in the root of the workspace.</dd>
|
|||||||
<p>Possible values:</p>
|
<p>Possible values:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
||||||
<li><code>"host"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
<li><code>"host-tuple"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
||||||
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
||||||
|
@ -153,7 +153,7 @@ be specified multiple times, which enables all specified features.</dd>
|
|||||||
<p>Possible values:</p>
|
<p>Possible values:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
||||||
<li><code>"host"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
<li><code>"host-tuple"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
||||||
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
||||||
|
@ -34,7 +34,7 @@ you plan to use Cargo without a network with the `--offline` flag.
|
|||||||
<p>Possible values:</p>
|
<p>Possible values:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
||||||
<li><code>"host"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
<li><code>"host-tuple"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
||||||
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
||||||
|
@ -252,7 +252,7 @@ be specified multiple times, which enables all specified features.</dd>
|
|||||||
<p>Possible values:</p>
|
<p>Possible values:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
||||||
<li><code>"host"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
<li><code>"host-tuple"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
||||||
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
||||||
|
@ -217,7 +217,7 @@ be specified multiple times, which enables all specified features.</dd>
|
|||||||
<p>Possible values:</p>
|
<p>Possible values:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
||||||
<li><code>"host"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
<li><code>"host-tuple"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
||||||
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
||||||
|
@ -207,7 +207,7 @@ single quotes or double quotes around each pattern.</dd>
|
|||||||
<p>Possible values:</p>
|
<p>Possible values:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
||||||
<li><code>"host"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
<li><code>"host-tuple"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
||||||
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
||||||
|
@ -127,7 +127,7 @@ single quotes or double quotes around each pattern.</dd>
|
|||||||
<p>Possible values:</p>
|
<p>Possible values:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
||||||
<li><code>"host"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
<li><code>"host-tuple"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
||||||
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
||||||
|
@ -93,7 +93,7 @@ be specified multiple times, which enables all specified features.</dd>
|
|||||||
<p>Possible values:</p>
|
<p>Possible values:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
||||||
<li><code>"host"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
<li><code>"host-tuple"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
||||||
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
||||||
|
@ -165,7 +165,7 @@ be specified multiple times, which enables all specified features.</dd>
|
|||||||
<p>Possible values:</p>
|
<p>Possible values:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
||||||
<li><code>"host"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
<li><code>"host-tuple"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
||||||
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
||||||
|
@ -171,7 +171,7 @@ be specified multiple times, which enables all specified features.</dd>
|
|||||||
<p>Possible values:</p>
|
<p>Possible values:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
||||||
<li><code>"host"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
<li><code>"host-tuple"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
||||||
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
||||||
|
@ -283,7 +283,7 @@ be specified multiple times, which enables all specified features.</dd>
|
|||||||
<p>Possible values:</p>
|
<p>Possible values:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
<li>Any supported target in <code>rustc --print target-list</code>.</li>
|
||||||
<li><code>"host"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
<li><code>"host-tuple"</code>, which will internally be substituted by the host’s target. This can be particularly useful if you’re cross-compiling some crates, and don’t want to specify your host’s machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
|
||||||
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>
|
||||||
|
@ -462,7 +462,7 @@ The default [target platform triples][target triple] to compile to.
|
|||||||
|
|
||||||
Possible values:
|
Possible values:
|
||||||
- Any supported target in `rustc --print target-list`.
|
- Any supported target in `rustc --print target-list`.
|
||||||
- `"host"`, which will internally be substituted by the host's target. This can be particularly useful if you're cross-compiling some crates, and don't want to specify your host's machine as a target (for instance, an `xtask` in a shared project that may be worked on by many hosts).
|
- `"host-tuple"`, which will internally be substituted by the host's target. This can be particularly useful if you're cross-compiling some crates, and don't want to specify your host's machine as a target (for instance, an `xtask` in a shared project that may be worked on by many hosts).
|
||||||
- A path to a custom target specification. See [Custom Target Lookup Path](../../rustc/targets/custom.html#custom-target-lookup-path) for more information.
|
- A path to a custom target specification. See [Custom Target Lookup Path](../../rustc/targets/custom.html#custom-target-lookup-path) for more information.
|
||||||
|
|
||||||
Can be overridden with the `--target` CLI option.
|
Can be overridden with the `--target` CLI option.
|
||||||
|
@ -277,7 +277,7 @@ Possible values:
|
|||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
|
@ -176,7 +176,7 @@ Possible values:
|
|||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
|
@ -172,7 +172,7 @@ Possible values:
|
|||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
|
@ -67,7 +67,7 @@ Possible values:
|
|||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
|
@ -147,7 +147,7 @@ Possible values:
|
|||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
|
@ -35,7 +35,7 @@ Possible values:
|
|||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
|
@ -267,7 +267,7 @@ Possible values:
|
|||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
|
@ -252,7 +252,7 @@ Possible values:
|
|||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
|
@ -249,7 +249,7 @@ Possible values:
|
|||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
|
@ -142,7 +142,7 @@ Possible values:
|
|||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
|
@ -82,7 +82,7 @@ Possible values:
|
|||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
|
@ -162,7 +162,7 @@ Possible values:
|
|||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
|
@ -164,7 +164,7 @@ Possible values:
|
|||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
|
@ -297,7 +297,7 @@ Possible values:
|
|||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
|
||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
|
@ -157,7 +157,7 @@ fn target_host_arg() {
|
|||||||
.file("src/lib.rs", r#""#)
|
.file("src/lib.rs", r#""#)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
p.cargo("build -v --target host")
|
p.cargo("build -v --target host-tuple")
|
||||||
.with_stderr_contains("[RUNNING] `rustc [..] --target [HOST_TARGET] [..]`")
|
.with_stderr_contains("[RUNNING] `rustc [..] --target [HOST_TARGET] [..]`")
|
||||||
.run();
|
.run();
|
||||||
}
|
}
|
||||||
@ -174,7 +174,7 @@ fn target_host_config() {
|
|||||||
&format!(
|
&format!(
|
||||||
r#"
|
r#"
|
||||||
[build]
|
[build]
|
||||||
target = "host"
|
target = "host-tuple"
|
||||||
"#,
|
"#,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user