- with big extension stacks (imagick) the link command lines exceed what
cmd.exe allows and fail with 'The command line is too long'
- pass the collected LIBS_CLI/LIBS_CGI/LIBS_MICRO lib lists to link.exe
through @response files, like php-src already does for its object lists
- compile the frankenphp -mthreads shim instead of generating a .bat:
batch files run through cmd.exe and cap cgo link lines at 8191 chars,
a real executable gets the full 32K and past that go writes a response
file by itself; still probe-gated, still a stopgap for golang/go#80290
Go passes the MinGW-only -mthreads flag to the C compiler for cgo builds
(golang/go#16932); Clang >= 20 rejects it for the MSVC target, so the final
frankenphp go build fails on current windows-latest (VS 18 / LLVM 20+).
Wrap Clang with a generated .bat that drops the -mthreads token and forwards
the rest, used only when the detected Clang refuses the flag.