goreleaser / goreleaser-cross

Docker image for Golang cross-compiling with CGO
MIT License
134 stars 23 forks source link

Wrong llvm-mingw usage #62

Closed ghost closed 4 months ago

ghost commented 6 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