13
13
//! (as usual) a massive undertaking/refactoring.
14
14
15
15
use super :: compile:: { run_cargo, rustc_cargo, std_cargo} ;
16
- use super :: tool:: { RustcPrivateCompilers , SourceType , prepare_tool_cargo} ;
16
+ use super :: tool:: { SourceType , prepare_tool_cargo} ;
17
17
use crate :: builder:: { Builder , ShouldRun } ;
18
18
use crate :: core:: build_steps:: check:: prepare_compiler_for_check;
19
19
use crate :: core:: build_steps:: compile:: std_crates_for_run_make;
@@ -296,15 +296,15 @@ impl Step for Rustc {
296
296
297
297
#[ derive( Debug , Clone , Hash , PartialEq , Eq ) ]
298
298
pub struct CodegenGcc {
299
- compilers : RustcPrivateCompilers ,
299
+ build_compiler : Compiler ,
300
300
target : TargetSelection ,
301
301
config : LintConfig ,
302
302
}
303
303
304
304
impl CodegenGcc {
305
305
fn new ( builder : & Builder < ' _ > , target : TargetSelection , config : LintConfig ) -> Self {
306
306
Self {
307
- compilers : RustcPrivateCompilers :: new ( builder, builder . top_stage , target ) ,
307
+ build_compiler : prepare_compiler_for_check ( builder, target , Mode :: Codegen ) ,
308
308
target,
309
309
config,
310
310
}
@@ -325,7 +325,7 @@ impl Step for CodegenGcc {
325
325
}
326
326
327
327
fn run ( self , builder : & Builder < ' _ > ) -> Self :: Output {
328
- let build_compiler = self . compilers . build_compiler ( ) ;
328
+ let build_compiler = self . build_compiler ;
329
329
let target = self . target ;
330
330
331
331
let cargo = prepare_tool_cargo (
@@ -363,10 +363,7 @@ impl Step for CodegenGcc {
363
363
}
364
364
365
365
fn metadata ( & self ) -> Option < StepMetadata > {
366
- Some (
367
- StepMetadata :: clippy ( "rustc_codegen_gcc" , self . target )
368
- . built_by ( self . compilers . build_compiler ( ) ) ,
369
- )
366
+ Some ( StepMetadata :: clippy ( "rustc_codegen_gcc" , self . target ) . built_by ( self . build_compiler ) )
370
367
}
371
368
}
372
369
0 commit comments