3 ms·
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 compi
by psanford 3y 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.
- makeworld 3y agoDo you have any links for using Zig for this?
- psanford 3y agoexport CC="zig cc -target aarch64-linux-musl"
- el-dude-arino 3y agoWell I found my side project for the day
- kristoff_it 3y agohttps://zig.news/kristoff/building-sqlite-with-cgo-for-every-os-4cic https://zig.news/kristoff/building-sqlite-with-cgo-for-every...