/ go Public
cmd/go, cmd/link: use Windows response files for gcc/g++ to avoid arg length limits #28372
Issues related to the Go compiler and/or runtime.
The path to resolution is known, but the work has not been done.
What version of Go are you using (
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
What did you do?
Tried to compile a cgo program.
What did you expect to see?
a successful compilation
What did you see instead?
gcc: error: CreateProcess: No such file or directory
g++: error: CreateProcess: No such file or directory
This patch works for my needs.
It's mostly a copy of: https://go-review.googlesource.com/c/go/+/110395
But I also needed to escape the backslashes to make it work.
The issue is related to: #18468
The problem is caused by the 32K character limit on windows
Also, once there is support for msvc on windows (#20982) it might be good idea to whitelist
The text was updated successfully, but these errors were encountered: