Repository navigation
TL;DR
For most cases, you can use mingw64-ucrt-16.2.0-r1.tar.zst or .7z.
To enable shared runtime libraries, copy $prefix/lib/shared/* or $prefix/lib/shared-unstable/* to $prefix/.
To build apps for Windows 11, which forces x86-64-v2 micro architecture level, you can use mingw64_v2-ucrt-16.2.0-r1.tar.zst or .7z for better performance.
Archives
mingw<profile>-<version>.tar.zst,.7z: native compiler.- These are what you need.
x-mingw<profile>-<version>.tar.zst: cross compiler.- Running on Ubuntu 24.04 x86-64.
- For internal use and downstream integration.
xmake-mingw<profile>-<version>.7z: Xmake.- Upstream releases recommended for Windows NT ≥ 6.0.
Profiles
Main profiles:
| Profile | Arch | CRT | Thread | Exception | Min. OS | Download |
|---|---|---|---|---|---|---|
| 64-mcf | x86-64 | ucrt | mcf | seh | NT 6.1 (7) | tar.zst, 7z, cross |
| 64-win32 | x86-64 | ucrt | win32 | seh | NT 6.0 (Vista) | tar.zst, 7z, cross |
| 64-ucrt | x86-64 | ucrt | posix | seh | NT 6.0 (Vista) | tar.zst, 7z, cross |
| 64-msvcrt | x86-64 | msvcrt | posix | seh | NT 6.0 (Vista) | tar.zst, 7z, cross |
| 32-mcf | pentium4 | ucrt | mcf | dwarf | NT 6.1 (7) | tar.zst, 7z, cross |
| 32-win32 | pentium4 | ucrt | win32 | dwarf | NT 6.0 (Vista) | tar.zst, 7z, cross |
| 32-ucrt | pentium4 | ucrt | posix | dwarf | NT 6.0 (Vista) | tar.zst, 7z, cross |
| 32-msvcrt | pentium4 | msvcrt | posix | dwarf | NT 6.0 (Vista) | tar.zst, 7z, cross |
Profile variants for better performance:
| Profile variant | Arch | CRT | Thread | Exception | Min. OS | Download |
|---|---|---|---|---|---|---|
| 64_v2-mcf | x86-64-v2 | ucrt | mcf | seh | NT 6.1 (7) | tar.zst, 7z, cross |
| 64_v2-win32 | x86-64-v2 | ucrt | win32 | seh | NT 6.0 (Vista) | tar.zst, 7z, cross |
| 64_v2-ucrt | x86-64-v2 | ucrt | posix | seh | NT 6.0 (Vista) | tar.zst, 7z, cross |
| 64_v2-msvcrt | x86-64-v2 | msvcrt | posix | seh | NT 6.0 (Vista) | tar.zst, 7z, cross |
Profile variant for earlier Windows versions:
| Profile variant | Arch | CRT | Thread | Exception | Min. OS | Download |
|---|---|---|---|---|---|---|
| 32-msvcrt_win2000 | pentium4 | msvcrt | posix | dwarf | NT 5.0 (2000) | tar.zst, 7z, cross, xmake |
| 32_686-msvcrt_win98 | i686 | msvcrt | posix | dwarf | NT 4.0, 4.10 (98) | tar.zst, 7z, cross, xmake |
| 32_486-msvcrt_win98 | i486 | msvcrt | posix | dwarf | NT 4.0, 4.10 (98) | tar.zst, 7z, cross, xmake |
Component Versions
- Binutils: 2.47.0
- GCC: 16.2.0
- GDB: 17.2
- GNU Make: 4.4.1
- MCF Gthread: 2.4-ga.2
- MinGW-w64: 14.0.0
- pkgconf: 3.0.5
Changes since 16.1.0-r0
16.2.0-r1
Older branches: 15.3.0-r1, 14.4.0-r1, 13.4.0-r8.
Emulated TLS branch: 16.1.0+emutls-r1.
BREAKING changes:
- [16 only] Minimum supported Windows version is now NT 6.0 (Vista).
- Profile 32-msvcrt_win2000 is restored for Windows XP support.
Other changes:
- [16 only] iconv is reimplemented using Win32 APIs.
- The encoding mapping is now consistent with Windows.
-fexec-charset=shift_jisnow works. (Workaround for older branches:-fexec-charset=cp932.)
- User libraries can be placed in
$prefix/$target.- This is supported in upstream GCC, but was unfortunately broken in MinGW Lite when fixing GCC’s utils search path. Affected releases: 15.2.0-r6 to 16.1.0-r0.
- An “emulated TLS” branch (16+emutls) is introduced for earlier Windows versions.
- [16 only] Win32 and CRT import libraries are now in short format.
- Cross compiler is now built on Ubuntu 24.04, upgraded from 20.04, to generate proper alias entries in import library.
- Fix some cases in path handling.
Component upgrade: binutils 2.47, GDB 17.2, MCF Gthread 2.4-ga.2, pkgconf 3.0.5.
Changes Compared with 15.x
BREAKING changes:
- A new mechanism is introduced to enable UTF-8 on all Windows versions.
- Technical detail: replacing Win32 and CRT
-AAPIs with thunks that do UTF-8 ↔ UTF-16 conversion and call-WAPIs. - The tools are UTF-8, without UTF-8 manifest injection!
- IDE integration: if a tool’s import table contains one of the following functions, it’s UTF-8.
kernel32!GetCommandLineW,msvcrt!__wgetmainargs,api-ms-win-crt-runtime-l1-1-0!_configure_wide_argv.
- Technical detail: replacing Win32 and CRT
- GCC now use Windows native TLS.
LoadLibrarydoes not initialize TLS until NT 6.0 (Vista). (If that is necessary, switch to “emutls” branch, or useTlsAlloc.)
Other changes:
Profile 32-msvcrt_win2000 is removed.- All profiles are not optimized for speed (-O2).
- Win32 and CRT import libraries are now in
mixed formatshort format.long format for aliases, short format for other symbols.- Reduce overall size by ~90 MiB.
The linker produce modules that have 2 entries for some dll in their import directory table. These modules work well on all Windows version. But if you are parsing their import table, you need to take care of this.