Did you know ... Search Documentation:
Building SWI-Prolog on MS-Windows

SWI-Prolog for MS-Windows is compiled using MinGW. To be precise, they are generated using the MinGW cross-compiler on a Linux system.

There are also swi-prolog packages for MSYS2.