Open Stebalien opened 2 years ago
Some motivation for why being able to compile with CGO across our supported platforms (Linux, OS X, Windows) is useful is that it enables kubo (formerly go-ipfs) to be able to support using the variety of code out there that's not written in Go but is exposed via FFI. Not every binary in this repo should need to support CGO building but it should be available.
Some examples I can think of:
WASM interpreters such as https://github.com/bytecodealliance/wasmtime-go
A couple other notes here:
Now that we're using a docker container for builds, it's a lot easier to setup a cross compiler to build binaries with CGO support for macos & 32bit linux.
We can probably just a docker container from https://github.com/techknowlogick/xgo and I have a feeling it'll "just work".