Hacker News new | ask | show | jobs
by mappu 751 days ago
You can cross-compile Cgo, you "just" need a C compiler and linker that works for the target platform. osxcross, xgo have some or maybe you can set CC=zig cc.

For macOS you need signing/notarization tools either when building natively or when cross-compiling, it's not any different. `rcodesign` has made this process much easier in recent years.

1 comments

+1 for `CC=zig cc`. Feels like magic