Closed ghost closed 9 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
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