This page documents the instructions for setting up a Windows build using ​msys2, which is a fairly complete build of MinGW + the msys tools. It is pretty self contained and fixes several pesky bugs with the traditional implementation. It's also smaller and has a convenient package manager, pacman.