searchcode icon indicating copy to clipboard operation
searchcode copied to clipboard

Use zig to cross compile (not an issue)

Open mgholam opened this issue 11 months ago • 1 comments

Hi,

If you need to cross compile with cgo easily i.e. using github.com/mattn/go-sqlite3, use zig.

I have been using it for 3 years, I have a build cmd here : https://gist.github.com/mgholam/a2dd8134da2752dc6992644c8068b3aa

Cheers,

mgholam avatar Feb 17 '25 13:02 mgholam

Thanks. Added this to my list of things to investigate. I was vaguely aware this was possible, just never needed to look at it in depth.

That said I do need something like when using DuckDB so thats a great help.

boyter avatar Feb 18 '25 00:02 boyter