goreleaser / goreleaser-cross

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

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

Closed gsoltis closed 1 year ago

gsoltis commented 1 year 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.