Skip to content

Commit 879efa6

Browse files
committed
Remove requirement for --target when invoking Cargo with -Zbuild-std
There is no longer a need for the --target to be specified in every case when using -Zbuild-std. Cargo will default to the Host CompileKind when no --target is specified.
1 parent 844457c commit 879efa6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/cargo/core/compiler/build_config.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ impl BuildConfig {
9999
},
100100
};
101101

102-
if gctx.cli_unstable().build_std.is_some() && requested_kinds[0].is_host() {
103-
// TODO: This should eventually be fixed.
104-
anyhow::bail!("-Zbuild-std requires --target");
105-
}
106-
107102
Ok(BuildConfig {
108103
requested_kinds,
109104
jobs,

0 commit comments

Comments
 (0)