As long as you bootstrap nob.c with the MinGW version of gcc and the bin folder of MinGW is in the PATH, this should work.
It just checks if nob.c is compiled using windows with a #ifdef, and uses windres instead of x86_64-w64-mingw32-windres when that's the case.
I tested it using the UCRT version of MinGW 13.1.0, and it probably works with the newest version (13.2.0) too.
As long as you bootstrap nob.c with the MinGW version of gcc and the
bin
folder of MinGW is in the PATH, this should work. It just checks if nob.c is compiled using windows with a#ifdef
, and useswindres
instead ofx86_64-w64-mingw32-windres
when that's the case. I tested it using the UCRT version of MinGW 13.1.0, and it probably works with the newest version (13.2.0) too.