File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -664,8 +664,6 @@ impl Step for Clippy {
664664 & [ ] ,
665665 ) ;
666666
667- // clippy tests need to know about the stage sysroot
668- cargo. env ( "SYSROOT" , builder. sysroot ( compiler) ) ;
669667 cargo. env ( "RUSTC_TEST_SUITE" , builder. rustc ( compiler) ) ;
670668 cargo. env ( "RUSTC_LIB_PATH" , builder. rustc_libdir ( compiler) ) ;
671669 let host_libs = builder. stage_out ( compiler, Mode :: ToolRustc ) . join ( builder. cargo_dir ( ) ) ;
Original file line number Diff line number Diff line change @@ -250,6 +250,10 @@ pub fn prepare_tool_cargo(
250250 }
251251 }
252252
253+ // clippy tests need to know about the stage sysroot. Set them consistently while building to
254+ // avoid rebuilding when running tests.
255+ cargo. env ( "SYSROOT" , builder. sysroot ( compiler) ) ;
256+
253257 // if tools are using lzma we want to force the build script to build its
254258 // own copy
255259 cargo. env ( "LZMA_API_STATIC" , "1" ) ;
You can’t perform that action at this time.
0 commit comments