Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
psanford
· 2y ago · 0 comments
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.
Comments
[–]
makeworld
2y ago
Do you have any links for using Zig for this?
[–]
kristoff_it
2y ago
https://zig.news/kristoff/building-sqlite-with-cgo-for-every...
[–]
psanford
OP
2y ago
export CC="zig cc -target aarch64-linux-musl"
[–]
el-dude-arino
2y ago
Well I found my side project for the day