@@ -421,13 +421,13 @@ impl Step for Rustc {
421
421
builder. install ( & rustdoc, & image. join ( "bin" ) , FileType :: Executable ) ;
422
422
}
423
423
424
+ let ra_proc_macro_srv_compiler =
425
+ builder. compiler_for ( compiler. stage , builder. config . build , compiler. host ) ;
426
+ builder. ensure ( compile:: Rustc :: new ( ra_proc_macro_srv_compiler, compiler. host ) ) ;
427
+
424
428
if let Some ( ra_proc_macro_srv) = builder. ensure_if_default (
425
429
tool:: RustAnalyzerProcMacroSrv {
426
- compiler : builder. compiler_for (
427
- compiler. stage ,
428
- builder. config . build ,
429
- compiler. host ,
430
- ) ,
430
+ compiler : ra_proc_macro_srv_compiler,
431
431
target : compiler. host ,
432
432
} ,
433
433
builder. kind ,
@@ -1177,6 +1177,8 @@ impl Step for Cargo {
1177
1177
let compiler = self . compiler ;
1178
1178
let target = self . target ;
1179
1179
1180
+ builder. ensure ( compile:: Rustc :: new ( compiler, target) ) ;
1181
+
1180
1182
let cargo = builder. ensure ( tool:: Cargo { compiler, target } ) ;
1181
1183
let src = builder. src . join ( "src/tools/cargo" ) ;
1182
1184
let etc = src. join ( "src/etc" ) ;
@@ -1231,6 +1233,8 @@ impl Step for RustAnalyzer {
1231
1233
let compiler = self . compiler ;
1232
1234
let target = self . target ;
1233
1235
1236
+ builder. ensure ( compile:: Rustc :: new ( compiler, target) ) ;
1237
+
1234
1238
let rust_analyzer = builder. ensure ( tool:: RustAnalyzer { compiler, target } ) ;
1235
1239
1236
1240
let mut tarball = Tarball :: new ( builder, "rust-analyzer" , & target. triple ) ;
@@ -1273,6 +1277,8 @@ impl Step for Clippy {
1273
1277
let compiler = self . compiler ;
1274
1278
let target = self . target ;
1275
1279
1280
+ builder. ensure ( compile:: Rustc :: new ( compiler, target) ) ;
1281
+
1276
1282
// Prepare the image directory
1277
1283
// We expect clippy to build, because we've exited this step above if tool
1278
1284
// state for clippy isn't testing.
@@ -1323,9 +1329,12 @@ impl Step for Miri {
1323
1329
if !builder. build . unstable_features ( ) {
1324
1330
return None ;
1325
1331
}
1332
+
1326
1333
let compiler = self . compiler ;
1327
1334
let target = self . target ;
1328
1335
1336
+ builder. ensure ( compile:: Rustc :: new ( compiler, target) ) ;
1337
+
1329
1338
let miri = builder. ensure ( tool:: Miri { compiler, target } ) ;
1330
1339
let cargomiri = builder. ensure ( tool:: CargoMiri { compiler, target } ) ;
1331
1340
@@ -1462,6 +1471,8 @@ impl Step for Rustfmt {
1462
1471
let compiler = self . compiler ;
1463
1472
let target = self . target ;
1464
1473
1474
+ builder. ensure ( compile:: Rustc :: new ( compiler, target) ) ;
1475
+
1465
1476
let rustfmt = builder. ensure ( tool:: Rustfmt { compiler, target } ) ;
1466
1477
let cargofmt = builder. ensure ( tool:: Cargofmt { compiler, target } ) ;
1467
1478
let mut tarball = Tarball :: new ( builder, "rustfmt" , & target. triple ) ;
@@ -2327,6 +2338,8 @@ impl Step for LlvmBitcodeLinker {
2327
2338
let compiler = self . compiler ;
2328
2339
let target = self . target ;
2329
2340
2341
+ builder. ensure ( compile:: Rustc :: new ( compiler, target) ) ;
2342
+
2330
2343
let llbc_linker =
2331
2344
builder. ensure ( tool:: LlvmBitcodeLinker { compiler, target, extra_features : vec ! [ ] } ) ;
2332
2345
0 commit comments