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 {
500500
501501/// Same as `std_cargo`, but for libtest
502502pub fn rustc_cargo ( build : & Build ,
503- compiler : & Compiler ,
503+ _compiler : & Compiler ,
504504 target : Interned < String > ,
505505 cargo : & mut Command ) {
506506 cargo. arg ( "--features" ) . arg ( build. rustc_features ( ) )
@@ -514,13 +514,9 @@ pub fn rustc_cargo(build: &Build,
514514 . env ( "CFG_VERSION" , build. rust_version ( ) )
515515 . env ( "CFG_PREFIX" , build. config . prefix . clone ( ) . unwrap_or_default ( ) ) ;
516516
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) ;
524520
525521 // If we're not building a compiler with debugging information then remove
526522 // these two env vars which would be set otherwise.
You can’t perform that action at this time.
0 commit comments