Skip to content

Commit 39d0b05

Browse files
committed
Restore the download of rust-mingw
The build might otherwise break due to mixing MinGW object files from rust-std and the local MinGW which might be newer/older than the version used to build rust-std. Fixes #48272
1 parent a85417f commit 39d0b05

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bootstrap/bootstrap.py

+5
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,11 @@ def download_stage0(self):
351351
with open(self.rustc_stamp(), 'w') as rust_stamp:
352352
rust_stamp.write(self.date)
353353

354+
if "pc-windows-gnu" in self.build:
355+
filename = "rust-mingw-{}-{}.tar.gz".format(
356+
rustc_channel, self.build)
357+
self._download_stage0_helper(filename, "rust-mingw")
358+
354359
if self.cargo().startswith(self.bin_root()) and \
355360
(not os.path.exists(self.cargo()) or
356361
self.program_out_of_date(self.cargo_stamp())):

0 commit comments

Comments
 (0)