-
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
cmd/link: don't resolve WebAssembly imports at link-time #29108
Comments
Currently the |
Supporting generating Wasm modules is probably a good idea. I think this would be a different build mode, like c-archive or c-shared on other platforms, that generates a library instead of an executable. The library can be "loaded"/"linked" at later time. Maybe we just reuse one of them, although it is not really "c". |
I don't think this needs anything with |
Right now I could see a value in adding Note that imports in WASM have both: module name and function name, so it would be great if one could specify both, with |
What version of Go are you using (
go version
)?But also tested with
devel
:Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Note: the
wasm_log
function is provided by the host environment and is expected to be resolved at runtime, when the WASM module is instantiated.What did you expect to see?
Compiled WASM module that communicates with the host environment.
For the comparison, it builds successfully with TinyGo, and the resulting WASM module works as expected:
What did you see instead?
With
go1.11.2
:With
devel
(thanks to https://golang.org/cl/151318):The text was updated successfully, but these errors were encountered: