mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 10:37:46 +00:00
c522569378
Previously we used the --export-all linker flag to export most functions. However, this is not needed and possibly increases binary size. Instead, we should be exporting the specific functions to be exported.
22 lines
458 B
JSON
22 lines
458 B
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",
|
|
"--no-demangle"
|
|
],
|
|
"emulator": ["node", "targets/wasm_exec.js"],
|
|
"wasm-abi": "js"
|
|
}
|