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:
Harry Moulton 2024-07-16 13:31:12 +01:00
parent 844457cf85
commit 879efa69cc

View File

@ -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,