mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 18:47:47 +00:00
c9fc95f6f3
LLD supports only C++ demangle, so disable it.
23 lines
496 B
JSON
23 lines
496 B
JSON
{
|
|
"llvm-target": "wasm32--wasi",
|
|
"build-tags": ["js", "wasm"],
|
|
"goos": "js",
|
|
"goarch": "wasm",
|
|
"compiler": "clang",
|
|
"linker": "wasm-ld",
|
|
"cflags": [
|
|
"--target=wasm32--wasi",
|
|
"--sysroot={root}/lib/wasi-libc/sysroot",
|
|
"-Oz"
|
|
],
|
|
"ldflags": [
|
|
"--allow-undefined",
|
|
"--no-threads",
|
|
"--stack-first",
|
|
"--export-all",
|
|
"--no-demangle",
|
|
"{root}/lib/wasi-libc/sysroot/lib/wasm32-wasi/libc.a"
|
|
],
|
|
"emulator": ["node", "targets/wasm_exec.js"]
|
|
}
|