tinygo/targets/wasm.json
Ayke van Laethem b09b07a52d
wasm: allow all undefined symbols
Undefined symbols will be shown by the embedder, for example when
running generated wasm files in a browser.

In the future, this should probably become a fixed list again. But for
experimenting it's easier now to just ignore undefined symbols and
expect the JS to provide them.
2018-10-30 15:59:29 +01:00

10 строки
209 Б
JSON

{
"llvm-target": "wasm32-unknown-unknown-wasm",
"build-tags": ["js", "wasm"],
"linker": "ld.lld-7",
"pre-link-args": [
"-flavor", "wasm",
"-allow-undefined"
],
"emulator": ["cwa"]
}