Skip to content

Commit 52d03c7

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 59c6fad commit 52d03c7

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
@@ -97,11 +97,6 @@ impl BuildConfig {
9797
},
9898
};
9999

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

0 commit comments

Comments
 (0)