Skip to content

Commit b08bac2

Browse files
committed
TO REVERT: Do not remove the libgccjit.so for other targets from the rustlib directory
1 parent c84f43c commit b08bac2

File tree

1 file changed

+3
-3
lines changed
  • src/bootstrap/src/core/builder

1 file changed

+3
-3
lines changed

src/bootstrap/src/core/builder/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -725,17 +725,17 @@ impl Step for Libdir {
725725
if !builder.config.dry_run() {
726726
// Avoid deleting the `rustlib/` directory we just copied (in `impl Step for
727727
// Sysroot`).
728-
if !builder.download_rustc() {
728+
/*if !builder.download_rustc() {
729729
let sysroot_target_libdir = sysroot.join(self.target).join("lib");
730730
builder.do_if_verbose(|| {
731731
eprintln!(
732-
"Removing sysroot {} to avoid caching bugs",
732+
"HERE Removing sysroot {} to avoid caching bugs",
733733
sysroot_target_libdir.display()
734734
)
735735
});
736736
let _ = fs::remove_dir_all(&sysroot_target_libdir);
737737
t!(fs::create_dir_all(&sysroot_target_libdir));
738-
}
738+
}*/
739739

740740
if self.compiler.stage == 0 {
741741
// The stage 0 compiler for the build triple is always pre-built. Ensure that

0 commit comments

Comments
 (0)