File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -500,7 +500,7 @@ impl Step for Rustc {
500
500
501
501
/// Same as `std_cargo`, but for libtest
502
502
pub fn rustc_cargo ( build : & Build ,
503
- compiler : & Compiler ,
503
+ _compiler : & Compiler ,
504
504
target : Interned < String > ,
505
505
cargo : & mut Command ) {
506
506
cargo. arg ( "--features" ) . arg ( build. rustc_features ( ) )
@@ -514,13 +514,9 @@ pub fn rustc_cargo(build: &Build,
514
514
. env ( "CFG_VERSION" , build. rust_version ( ) )
515
515
. env ( "CFG_PREFIX" , build. config . prefix . clone ( ) . unwrap_or_default ( ) ) ;
516
516
517
- if compiler. stage == 0 {
518
- cargo. env ( "CFG_LIBDIR_RELATIVE" , "lib" ) ;
519
- } else {
520
- let libdir_relative =
521
- build. config . libdir_relative . clone ( ) . unwrap_or ( PathBuf :: from ( "lib" ) ) ;
522
- cargo. env ( "CFG_LIBDIR_RELATIVE" , libdir_relative) ;
523
- }
517
+ let libdir_relative =
518
+ build. config . libdir_relative . clone ( ) . unwrap_or ( PathBuf :: from ( "lib" ) ) ;
519
+ cargo. env ( "CFG_LIBDIR_RELATIVE" , libdir_relative) ;
524
520
525
521
// If we're not building a compiler with debugging information then remove
526
522
// these two env vars which would be set otherwise.
You can’t perform that action at this time.
0 commit comments