tinygo/targets/wasm.json
Ayke van Laethem 39ff13fd1a wasm: specify wasi-libc in code, not in the JSON target file
This brings a bit more consistency to libc configuration. It seems
better to me to set the header flags all in the same place, instead of
some in Go code and some in JSON target files (depending on the target).
2021-11-04 17:15:38 +01:00

16 строки
372 Б
JSON

{
"llvm-target": "wasm32-unknown-wasi",
"cpu": "generic",
"build-tags": ["tinygo.wasm"],
"goos": "js",
"goarch": "wasm",
"linker": "wasm-ld",
"libc": "wasi-libc",
"ldflags": [
"--allow-undefined",
"--stack-first",
"--no-demangle"
],
"emulator": ["node", "targets/wasm_exec.js"],
"wasm-abi": "js"
}