|
|
|
|
|
by Groxx
985 days ago
|
|
To be a bit more specific here: pure Go binaries are trivial to cross-compile and they Just Work⢠basically all the time. `GOOS="darwin" GOARCH="arm64" go build .` and you're done. Just iterate over the combinations you care about, they'll all work. As soon as you or a library touches cgo, you have to deal with finding and setting up C cross-compilation tooling for your target(s), dynamic linking details, tons of stuff that may have nothing to do with your code or be an area you're an expert in as a Go developer. |
|