goreleaser / goreleaser-cross

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

Make CC and CXX vars host architecture independent #17

Closed HenryNguyen5 closed 2 years ago

HenryNguyen5 commented 2 years ago

Hi there, thanks for making this project. It saved me a bunch of time. One big thing i ran into while using an arm64 based host is that the CC and CCX variable is host arch specific when targeting g++ and gcc. I changed your table so that no matter which host you're on, it uses the right compiler arch type.