mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 03:27:48 +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).
18 lines
389 B
JSON
18 lines
389 B
JSON
{
|
|
"llvm-target": "wasm32-unknown-wasi",
|
|
"cpu": "generic",
|
|
"build-tags": ["tinygo.wasm", "wasi"],
|
|
"goos": "linux",
|
|
"goarch": "arm",
|
|
"linker": "wasm-ld",
|
|
"libc": "wasi-libc",
|
|
"ldflags": [
|
|
"--allow-undefined",
|
|
"--stack-first",
|
|
"--export-dynamic",
|
|
"--no-demangle"
|
|
],
|
|
"emulator": ["wasmtime"],
|
|
"wasm-abi": "generic"
|
|
}
|