goreleaser / goreleaser-cross

Docker image for Golang cross-compiling with CGO
MIT License
156 stars 26 forks source link

Wrong llvm-mingw usage #62

Closed ghost closed 9 months ago

ghost commented 11 months ago

Currently, goreleaser uses llvm-mingw for mingw-w64 arm64 builds however since it doesn't include necessary C header files c module builds will likely fail.

Therefore, the CGO_CFLAGS should point to the llvm-mingw's include directory.

see https://pkg.go.dev/cmd/cgo#hdr-Using_cgo_with_the_go_command