Skip to content

Commit 75e6a3d

Browse files
Rollup merge of rust-lang#158020 - mati865:mingw-baseline, r=marcoieni
Update mingw-w64 C toolchain
2 parents 5e7672a + b1483e3 commit 75e6a3d

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

src/ci/scripts/install-mingw.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ IFS=$'\n\t'
66

77
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
88

9-
MINGW_ARCHIVE_32="i686-14.1.0-release-posix-dwarf-msvcrt-rt_v12-rev0.7z"
10-
MINGW_ARCHIVE_64="x86_64-14.1.0-release-posix-seh-msvcrt-rt_v12-rev0.7z"
9+
MINGW_ARCHIVE_32="i686-14.2.0-release-posix-dwarf-msvcrt-rt_v12-rev2.7z"
10+
MINGW_ARCHIVE_64="x86_64-14.2.0-release-posix-seh-msvcrt-rt_v12-rev2.7z"
1111
LLVM_MINGW_ARCHIVE_AARCH64="llvm-mingw-20251104-ucrt-aarch64.zip"
1212
LLVM_MINGW_ARCHIVE_X86_64="llvm-mingw-20251104-ucrt-x86_64.zip"
1313

src/doc/rustc/src/platform-support/windows-gnu.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ They follow Windows calling convention for `extern "C"`.
2626

2727
Like with any other Windows target, created binaries are in PE format.
2828

29+
### C toolchain
30+
31+
The targets are built and tested using a reasonably modern C toolchain, and it should be considered as the oldest supported version:
32+
33+
* GNU Binutils 2.44
34+
* GCC 14.2
35+
* mingw-w64 12.0.0
36+
* MSVCRT library as the default
37+
38+
Using older tools (especially Binutils) may not work properly, due to the number of issues plaguing older versions of Binutils.
39+
The supported toolchain versions are subject to change.
40+
2941
## Building Rust programs
3042

3143
Rust does ship a pre-compiled std library for those targets.

0 commit comments

Comments
 (0)