tinygo/targets/wasm.json
Ayke van Laethem 41e093d7bb wasm: switch emulator to node.js
Unfortunately, the olin/cwa emulator does not handle floats correctly.
Node.js does, and because it is also supported by the Go WebAssembly
implementation it has better support in general.
2019-03-04 21:58:40 +01:00

16 строки
333 Б
JSON

{
"llvm-target": "wasm32-unknown-unknown-wasm",
"build-tags": ["js", "wasm"],
"goos": "js",
"goarch": "wasm",
"compiler": "clang-7",
"linker": "wasm-ld-7",
"cflags": [
"--target=wasm32",
"-Oz"
],
"ldflags": [
"-allow-undefined"
],
"emulator": ["node", "targets/wasm_exec.js"]
}