niXman/mingw-builds ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple set of scripts that automates building MinGW W64 compilers for both 32 bit and 64 bit Windows targets.
I want it to run in MSYS2 on Windows, or on Linux with Wine, and let me choose things like architecture, compiler version, exception handling style, language support, whether to use LTO, and whether to run tests. It should download the needed source code, set up separate build folders and logs, build the toolchain, and package the result into archives I can grab later. If possible, include sensible defaults for common builds, plus a clear help message that explains the options in plain English.
Please also make sure it can handle both GCC release builds and pre release or trunk style builds, and leave room for patch files and extra sources for related tools like Python if needed. If you need to check current docs or build requirements online, go ahead and look them up.
Are you gonna build this?
make sure you review the code using coderabbit