mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
8e8ad9004f
This eliminates the 'wasi' build tag in favor of 'GOOS=wasip1', introduced in Go 1.21. For backwards compatablity, -target=wasi is a synonym for -target=wasip1.
27 lines
639 B
JSON
27 lines
639 B
JSON
{
|
|
"llvm-target": "wasm32-unknown-wasi",
|
|
"cpu": "generic",
|
|
"features": "+bulk-memory,+mutable-globals,+nontrapping-fptoint,+sign-ext",
|
|
"build-tags": ["tinygo.wasm"],
|
|
"goos": "wasip1",
|
|
"goarch": "wasm",
|
|
"linker": "wasm-ld",
|
|
"libc": "wasi-libc",
|
|
"rtlib": "compiler-rt",
|
|
"scheduler": "asyncify",
|
|
"default-stack-size": 65536,
|
|
"cflags": [
|
|
"-mbulk-memory",
|
|
"-mnontrapping-fptoint",
|
|
"-msign-ext"
|
|
],
|
|
"ldflags": [
|
|
"--stack-first",
|
|
"--no-demangle"
|
|
],
|
|
"extra-files": [
|
|
"src/runtime/asm_tinygowasm.S"
|
|
],
|
|
"emulator": "wasmtime --dir={tmpDir}::/tmp {}"
|
|
}
|