
This brings some consistency to the CFlags and fixes the issue that on some platforms (Linux, MacOS), no optimization level was set and therefore C files in packages were not optimized at all.
19 строки
423 Б
JSON
19 строки
423 Б
JSON
{
|
|
"llvm-target": "wasm32--wasi",
|
|
"build-tags": ["tinygo.wasm"],
|
|
"goos": "js",
|
|
"goarch": "wasm",
|
|
"linker": "wasm-ld",
|
|
"libc": "wasi-libc",
|
|
"cflags": [
|
|
"--target=wasm32--wasi",
|
|
"--sysroot={root}/lib/wasi-libc/sysroot"
|
|
],
|
|
"ldflags": [
|
|
"--allow-undefined",
|
|
"--stack-first",
|
|
"--no-demangle"
|
|
],
|
|
"emulator": ["node", "targets/wasm_exec.js"],
|
|
"wasm-abi": "js"
|
|
}
|