@@ -380,7 +380,7 @@ impl Step for RustAnalyzer {
380
380
// work in Rust CI
381
381
cargo. env ( "SKIP_SLOW_TESTS" , "1" ) ;
382
382
383
- cargo. add_rustc_lib_path ( builder, compiler ) ;
383
+ cargo. add_rustc_lib_path ( builder) ;
384
384
run_cargo_test ( cargo, & [ ] , & [ ] , "rust-analyzer" , "rust-analyzer" , compiler, host, builder) ;
385
385
}
386
386
}
@@ -426,7 +426,7 @@ impl Step for Rustfmt {
426
426
t ! ( fs:: create_dir_all( & dir) ) ;
427
427
cargo. env ( "RUSTFMT_TEST_DIR" , dir) ;
428
428
429
- cargo. add_rustc_lib_path ( builder, compiler ) ;
429
+ cargo. add_rustc_lib_path ( builder) ;
430
430
431
431
run_cargo_test ( cargo, & [ ] , & [ ] , "rustfmt" , "rustfmt" , compiler, host, builder) ;
432
432
}
@@ -476,7 +476,7 @@ impl Step for RustDemangler {
476
476
t ! ( fs:: create_dir_all( & dir) ) ;
477
477
478
478
cargo. env ( "RUST_DEMANGLER_DRIVER_PATH" , rust_demangler) ;
479
- cargo. add_rustc_lib_path ( builder, compiler ) ;
479
+ cargo. add_rustc_lib_path ( builder) ;
480
480
481
481
run_cargo_test (
482
482
cargo,
@@ -517,7 +517,7 @@ impl Miri {
517
517
SourceType :: InTree ,
518
518
& [ ] ,
519
519
) ;
520
- cargo. add_rustc_lib_path ( builder, compiler ) ;
520
+ cargo. add_rustc_lib_path ( builder) ;
521
521
cargo. arg ( "--" ) . arg ( "miri" ) . arg ( "setup" ) ;
522
522
cargo. arg ( "--target" ) . arg ( target. rustc_target_arg ( ) ) ;
523
523
@@ -618,7 +618,7 @@ impl Step for Miri {
618
618
) ;
619
619
let _guard = builder. msg_sysroot_tool ( Kind :: Test , compiler. stage , "miri" , host, target) ;
620
620
621
- cargo. add_rustc_lib_path ( builder, compiler ) ;
621
+ cargo. add_rustc_lib_path ( builder) ;
622
622
623
623
// miri tests need to know about the stage sysroot
624
624
cargo. env ( "MIRI_SYSROOT" , & miri_sysroot) ;
@@ -671,7 +671,7 @@ impl Step for Miri {
671
671
SourceType :: Submodule ,
672
672
& [ ] ,
673
673
) ;
674
- cargo. add_rustc_lib_path ( builder, compiler ) ;
674
+ cargo. add_rustc_lib_path ( builder) ;
675
675
cargo. arg ( "--" ) . arg ( "miri" ) . arg ( "test" ) ;
676
676
if builder. config . locked_deps {
677
677
cargo. arg ( "--locked" ) ;
@@ -788,7 +788,7 @@ impl Step for Clippy {
788
788
let host_libs = builder. stage_out ( compiler, Mode :: ToolRustc ) . join ( builder. cargo_dir ( ) ) ;
789
789
cargo. env ( "HOST_LIBS" , host_libs) ;
790
790
791
- cargo. add_rustc_lib_path ( builder, compiler ) ;
791
+ cargo. add_rustc_lib_path ( builder) ;
792
792
let mut cargo = prepare_cargo_test ( cargo, & [ ] , & [ ] , "clippy" , compiler, host, builder) ;
793
793
794
794
let _guard = builder. msg_sysroot_tool ( Kind :: Test , compiler. stage , "clippy" , host, host) ;
@@ -2500,7 +2500,9 @@ impl Step for Crate {
2500
2500
let compiler = builder. compiler_for ( compiler. stage , compiler. host , target) ;
2501
2501
2502
2502
let mut cargo =
2503
- builder. cargo ( compiler, mode, SourceType :: InTree , target, builder. kind . as_str ( ) , false ) ;
2503
+ builder. cargo ( compiler, mode, SourceType :: InTree , target, builder. kind . as_str ( ) ) ;
2504
+ cargo. configure_linker ( builder) ;
2505
+
2504
2506
match mode {
2505
2507
Mode :: Std => {
2506
2508
compile:: std_cargo ( builder, target, compiler. stage , & mut cargo) ;
@@ -3140,8 +3142,9 @@ impl Step for CodegenCranelift {
3140
3142
SourceType :: InTree ,
3141
3143
target,
3142
3144
"run" ,
3143
- false ,
3144
3145
) ;
3146
+ cargo. configure_linker ( builder) ;
3147
+
3145
3148
cargo. current_dir ( & builder. src . join ( "compiler/rustc_codegen_cranelift" ) ) ;
3146
3149
cargo
3147
3150
. arg ( "--manifest-path" )
@@ -3267,8 +3270,9 @@ impl Step for CodegenGCC {
3267
3270
SourceType :: InTree ,
3268
3271
target,
3269
3272
"run" ,
3270
- false ,
3271
3273
) ;
3274
+ cargo. configure_linker ( builder) ;
3275
+
3272
3276
cargo. current_dir ( & builder. src . join ( "compiler/rustc_codegen_gcc" ) ) ;
3273
3277
cargo
3274
3278
. arg ( "--manifest-path" )
0 commit comments