
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.
16 строки
333 Б
JSON
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"]
|
|
}
|