File tree 2 files changed +18
-1
lines changed
src/bootstrap/src/core/build_steps
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,18 @@ impl Step for JsonDocs {
103
103
/// Builds the `rust-docs-json` installer component.
104
104
fn run ( self , builder : & Builder < ' _ > ) -> Option < GeneratedTarball > {
105
105
let host = self . host ;
106
- builder. ensure ( crate :: core:: build_steps:: doc:: Std :: new (
106
+
107
+ let crates = builder
108
+ . in_tree_crates ( "sysroot" , Some ( host) )
109
+ . into_iter ( )
110
+ . map ( |krate| krate. name . to_string ( ) )
111
+ . collect ( ) ;
112
+
113
+ builder. ensure ( crate :: core:: build_steps:: doc:: Std :: new_with_crates (
107
114
builder. top_stage ,
108
115
host,
109
116
DocumentationFormat :: Json ,
117
+ crates,
110
118
) ) ;
111
119
112
120
let dest = "share/doc/rust/json" ;
Original file line number Diff line number Diff line change @@ -567,6 +567,15 @@ impl Std {
567
567
pub ( crate ) fn new ( stage : u32 , target : TargetSelection , format : DocumentationFormat ) -> Self {
568
568
Std { stage, target, format, crates : vec ! [ ] }
569
569
}
570
+
571
+ pub ( crate ) fn new_with_crates (
572
+ stage : u32 ,
573
+ target : TargetSelection ,
574
+ format : DocumentationFormat ,
575
+ crates : Vec < String > ,
576
+ ) -> Self {
577
+ Std { stage, target, format, crates }
578
+ }
570
579
}
571
580
572
581
impl Step for Std {
You can’t perform that action at this time.
0 commit comments