tinygo/targets/wasi.json
Ayke van Laethem 869baca117 wasi: specify wasi-libc in a different way
This way is more consistent with how picolibc is specified and allows
generating a helpful error message. This error message should never be
generated for TinyGo binary releases, only when doing local development.
2021-03-04 17:25:22 +01:00

22 строки
469 Б
JSON

{
"llvm-target": "wasm32--wasi",
"build-tags": ["wasm", "wasi"],
"goos": "linux",
"goarch": "arm",
"compiler": "clang",
"linker": "wasm-ld",
"libc": "wasi-libc",
"cflags": [
"--target=wasm32--wasi",
"--sysroot={root}/lib/wasi-libc/sysroot",
"-Oz"
],
"ldflags": [
"--allow-undefined",
"--stack-first",
"--export-dynamic",
"--no-demangle"
],
"emulator": ["wasmtime"],
"wasm-abi": "generic"
}