mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 18:47:47 +00:00
9da8b5c786
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.
30 lines
731 B
JSON
30 lines
731 B
JSON
{
|
|
"llvm-target": "wasm32-unknown-unknown",
|
|
"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",
|
|
"rtlib": "compiler-rt",
|
|
"libc": "wasmbuiltins",
|
|
"scheduler": "none",
|
|
"gc": "leaking",
|
|
"default-stack-size": 4096,
|
|
"cflags": [
|
|
"-mno-bulk-memory",
|
|
"-mnontrapping-fptoint",
|
|
"-msign-ext"
|
|
],
|
|
"ldflags": [
|
|
"--stack-first",
|
|
"--no-demangle",
|
|
"--no-entry"
|
|
],
|
|
"extra-files": [
|
|
"src/runtime/asm_tinygowasm.S"
|
|
],
|
|
"emulator": "wasmtime --dir={tmpDir}::/tmp {}"
|
|
}
|