Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Anime4000
Last active December 1, 2019 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Anime4000/ff6dcea09ae3139bbc7dc505dff00387 to your computer and use it in GitHub Desktop.
Save Anime4000/ff6dcea09ae3139bbc7dc505dff00387 to your computer and use it in GitHub Desktop.
MSYS2 MINGW32 GCC 9.2

Using XhmikosR's Builds http://xhmikosr.1f0.de/tools/msys/MSYS_MinGW-w64_GCC_710_x86-x64_Full.7z

First, you need temporary disable AntiVirus/Windows Defender, it can cause slow to compile

Command top build GCC 9.2 (Ryzen Optimization)

cd ~/gcc-9.2.0
./contrib/download_prerequisites
mkdir build
cd build
../configure --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw/bin/gcc-9.2 --program-suffix=-9.2

Compile GCC 9.2, since I have AMD Ryzen 3700X 8-Core Processor (16 Thread Total), I use:

make -j 16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment