-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: support emscripten compiler for cgo on wasm #55351
Comments
This is not a proposal. Turning into a normal issue. It may be possible, but somebody would have to do the work. |
CC @neelance |
Thank you for your information! Looking forward to seeing this feature implemented in the future release of go! |
Seems possible in theory, but very unlikely to happen. I think you should rather try to compile your Go code and C code to WebAssembly separately, load both in the same WebAssembly environment and then connect them somehow. |
@neelance could you please provide some step-by-step tutorial about that? |
Not really. The "somehow" meant that I don't know how exactly to do it, just that I think it should be possible. |
Are there any updates/plans for that? I'm looking forward to see this feature as I really need it 😕 |
Hi there!
In reference to #40543
After a while of googling I found that
C to wasm compiler
already exists: https://emscripten.org/index.htmlIs it possible to make CGO support webgl build target and allow to specify compiler e.g. with CC="..." and CXX="..." ?
The text was updated successfully, but these errors were encountered: