@@ -404,12 +404,7 @@ pub fn create_bcx<'a, 'cfg>(
404
404
. shell ( )
405
405
. warn ( "-Zbuild-std does not currently fully support --build-plan" ) ?;
406
406
}
407
- if build_config. requested_kinds [ 0 ] . is_host ( ) {
408
- // TODO: This should eventually be fixed. Unfortunately it is not
409
- // easy to get the host triple in BuildConfig. Consider changing
410
- // requested_target to an enum, or some other approach.
411
- anyhow:: bail!( "-Zbuild-std requires --target" ) ;
412
- }
407
+
413
408
let ( std_package_set, std_resolve, std_features) =
414
409
standard_lib:: resolve_std ( ws, & target_data, & build_config. requested_kinds , crates) ?;
415
410
pkg_set. add_set ( std_package_set) ;
@@ -476,14 +471,6 @@ pub fn create_bcx<'a, 'cfg>(
476
471
// assuming `--target $HOST` was specified. See
477
472
// `rebuild_unit_graph_shared` for more on why this is done.
478
473
let explicit_host_kind = CompileKind :: Target ( CompileTarget :: new ( & target_data. rustc . host ) ?) ;
479
- let explicit_host_kinds: Vec < _ > = build_config
480
- . requested_kinds
481
- . iter ( )
482
- . map ( |kind| match kind {
483
- CompileKind :: Host => explicit_host_kind,
484
- CompileKind :: Target ( t) => CompileKind :: Target ( * t) ,
485
- } )
486
- . collect ( ) ;
487
474
488
475
// Passing `build_config.requested_kinds` instead of
489
476
// `explicit_host_kinds` here so that `generate_targets` can do
0 commit comments