Hacker News new | ask | show | jobs
by psanford 917 days ago
I cross compile mattn/go-sqlite3 a lot. It's about the easiest cgo project to cross compile since it has no external dependencies.

Just use zig as your c compiler and it all just works.

1 comments

Do you have any links for using Zig for this?
export CC="zig cc -target aarch64-linux-musl"
Well I found my side project for the day