
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.
22 строки
476 Б
JSON
22 строки
476 Б
JSON
{
|
|
"llvm-target": "wasm32--wasi",
|
|
"build-tags": ["js", "wasm"],
|
|
"goos": "js",
|
|
"goarch": "wasm",
|
|
"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-all",
|
|
"--no-demangle"
|
|
],
|
|
"emulator": ["node", "targets/wasm_exec.js"],
|
|
"wasm-abi": "js"
|
|
}
|