File tree 2 files changed +4
-2
lines changed
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 {
664
664
& [ ] ,
665
665
) ;
666
666
667
- // clippy tests need to know about the stage sysroot
668
- cargo. env ( "SYSROOT" , builder. sysroot ( compiler) ) ;
669
667
cargo. env ( "RUSTC_TEST_SUITE" , builder. rustc ( compiler) ) ;
670
668
cargo. env ( "RUSTC_LIB_PATH" , builder. rustc_libdir ( compiler) ) ;
671
669
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(
250
250
}
251
251
}
252
252
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
+
253
257
// if tools are using lzma we want to force the build script to build its
254
258
// own copy
255
259
cargo. env ( "LZMA_API_STATIC" , "1" ) ;
You can’t perform that action at this time.
0 commit comments