goreleaser / goreleaser-cross

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

Add llvm-based mingw-w64 that supports aarch64 #9

Closed gsoltis closed 2 years ago

gsoltis commented 2 years ago

I used an llvm-based mingw from here to setup cross-compiling to windows on arm64.

The toolchain lives in a separate, top-level directory from the rest of the toolchain in the image because I didn't want to mess up anything needed for OSX compatibility, which looks to rely on some of the same packages (clang, llvm, etc.).

Additionally, in the second commit I added some fixes to the Makefile which I think might be necessary to run targets individually.