mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
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.
This commit is contained in:
parent
844457cf85
commit
879efa69cc
@ -99,11 +99,6 @@ impl BuildConfig {
|
||||
},
|
||||
};
|
||||
|
||||
if gctx.cli_unstable().build_std.is_some() && requested_kinds[0].is_host() {
|
||||
// TODO: This should eventually be fixed.
|
||||
anyhow::bail!("-Zbuild-std requires --target");
|
||||
}
|
||||
|
||||
Ok(BuildConfig {
|
||||
requested_kinds,
|
||||
jobs,
|
||||
|
Loading…
x
Reference in New Issue
Block a user