File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/tools/build-manifest/src Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -474,7 +474,6 @@ impl Builder {
474474 // and so is rust-mingw if it's available for the target.
475475 components. extend ( vec ! [
476476 host_component( "rustc" ) ,
477- host_component( "rustc-dev" ) ,
478477 host_component( "rust-std" ) ,
479478 host_component( "cargo" ) ,
480479 host_component( "rust-docs" ) ,
@@ -483,6 +482,15 @@ impl Builder {
483482 components. push ( host_component ( "rust-mingw" ) ) ;
484483 }
485484
485+ // The compiler libraries are not stable for end users, but `rustc-dev` was only recently
486+ // split out of `rust-std`. We'll include it by default as a transition for nightly users,
487+ // but ship it as an optional component on the beta and stable channels.
488+ if self . rust_release == "nightly" {
489+ components. push ( host_component ( "rustc-dev" ) ) ;
490+ } else {
491+ extensions. push ( host_component ( "rustc-dev" ) ) ;
492+ }
493+
486494 // Tools are always present in the manifest,
487495 // but might be marked as unavailable if they weren't built.
488496 extensions. extend ( vec ! [
You can’t perform that action at this time.
0 commit comments