-
Open your web browser and load the official project website of the MinGW-w64 project:
https://www.mingw-w64.org/
Actually, we can go straight to the download section:
https://www.mingw-w64.org/downloads
-
You find several links to different packages of MinGW-w64 bundled together with compilers and additional software.
This guide focuses on the LLVM package,
LLVM-MinGW
, which provides the LLVM compilers and also comes bundled with make
and Python
(Version >= 3.9).
-
Use the link on the website or go directly to:
https://github.com/mstorsjo/llvm-mingw/releases
Here, you find Zip-files that contain the precompiled binaries, for different processor architectures and operating systems.
-
We need to understand which version to download.
A brief explanation is found on the project homepage on Github:
https://github.com/mstorsjo/llvm-mingw#releases
We want to work on Windows directly, so we look for Zip-files called
llvm-mingw-<version>-<crt>-<arch>.zip
where
-
<version>
- A running number that simply indicates the version of the package
-
<crt>
- The C runtime library required, which is either mscvrt
or ucrt
.
The former is the MSV C runtime, which is available on all versions of Windows but has less features.
The latter is the Universal C runtime, which is pre-installed from Windows 10 onwards.
Please note that the Zip-file will not provide that runtime library,
you need to make sure that your Windows installation already provides it.
For that reason, we will pick the MSV C runtime.
-
<arch>
- This indicates the processor architecture, which is one of the following:
i686
, which is the 32-bit architecture of Intel
x86-64
, which is the 64-bit architecture of Intel
armv7
, which is the 32-bit architecture of ARM
aarch64
, which is the 64-bit architecture of ARM
The package contains binaries to compile for any of those architectures but these binaries only run on the specified architecture.
For that reason, you need look up which processor is being used on your machine and pick the appropriate package.
Let us suppose from now on that we have picked 64-bit Intel CPU and, just for compatibility reasons, use the MSV C runtime.
The version will be 20231003
.
You must adapt the following lines according to your choice of package, and likely your version number will be more advanced.
Whatever you pick, download the Zip file.