mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 11:07:46 +00:00
39ff13fd1a
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).
17 lines
372 B
JSON
17 lines
372 B
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"
|
|
}
|