mingw-w64

The mingw-w64 project is a complete runtime environment for gcc to support binaries native to Windows 64-bit and 32-bit operating systems.

Latest version: 15.2.0

Add to xmake.lua

add_requires("mingw-w64 15.2.0")

Learn how to add and link packages with Xmake →

Information

Kind
toolchain
Recipe updated
2025-11-23T08:09:20.000Z

Platforms

  • windows: x86, x64, arm, arm64, arm64ec

Options

python2
Export builtin python2. · Type: boolean · Default: false

Versions

  • 8.1.0
  • 11.2.0
  • 15.2.0

Dependencies

No dependencies declared.

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "mingw-w64 15.2.0"

show info

xrepo info "mingw-w64"

Bind a toolchain package

Template: replace TOOLCHAIN_NAME with the matching Xmake toolchain name, which may differ from the package name (for example, emcc for emscripten). Apply this selection to a compatible target and platform; this is not an add_packages library link.

xmake.lua — replace TOOLCHAIN_NAME

add_requires("mingw-w64 15.2.0")

-- Replace TOOLCHAIN_NAME with the matching Xmake toolchain.
set_toolchains("TOOLCHAIN_NAME@mingw-w64")

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "mingw-w64 15.2.0" shell