tinygo/targets/wasi.json
Takeshi Yoneda 9a015f4f64
add wasm-abi field in TargetSpec && set generic for WASI by default (#1421)
Signed-off-by: mathetake <takeshi@tetrate.io>
2020-10-03 19:52:01 +02:00

23 строки
513 Б
JSON

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