mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 10:43:29 +00:00
wasm: add //go:wasmexport support (#4451)
This adds support for the `//go:wasmexport` pragma as proposed here: https://github.com/golang/go/issues/65199 It is currently implemented only for wasip1 and wasm-unknown, but it is certainly possible to extend it to other targets like GOOS=js and wasip2.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
"cpu": "generic",
|
||||
"features": "+mutable-globals,+nontrapping-fptoint,+sign-ext,-bulk-memory",
|
||||
"build-tags": ["tinygo.wasm", "wasm_unknown"],
|
||||
"buildmode": "c-shared",
|
||||
"goos": "linux",
|
||||
"goarch": "arm",
|
||||
"linker": "wasm-ld",
|
||||
|
||||
Reference in New Issue
Block a user