You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! TinyGo is super interesting, thank you for all your work on this project.
I have a large CGO package that i'm interested to try with TinyGo, to reduce binary size and perform dead code elimination across Go/C/C++ boundaries. But, I hit some missing features so far.
This is not something we currently support, since TinyGo statically links against its own libc (musl) while external libraries will most likely link against the system libc (often glibc). Linking against the wrong libc will cause all kinds of issues if it's even possible.
We would need to link to the system libc (probably) to support this. Which is something that I'd like to add support for at some point, but is a bit more work than just adding support for pkg-config.
CXXFLAGS on the other hand is something that we could definitely add support for, and wouldn't be terribly difficult.
Hi! TinyGo is super interesting, thank you for all your work on this project.
I have a large CGO package that i'm interested to try with TinyGo, to reduce binary size and perform dead code elimination across Go/C/C++ boundaries. But, I hit some missing features so far.
Go with CGO uses these directives:
$(go env CXX)
compiler, using these #cgo CXXFLAGS$(go env PKG_CONFIG) --cflags/--libs
.The text was updated successfully, but these errors were encountered: