cmd/link: don't resolve WebAssembly imports at link-time #29108
Labels
arch-wasm
WebAssembly issues
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
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: