tinygo/targets/wasm.json
2019-05-25 18:25:46 +02:00

20 строки
410 Б
JSON

{
"llvm-target": "wasm32-unknown-unknown-wasm",
"build-tags": ["js", "wasm"],
"goos": "js",
"goarch": "wasm",
"compiler": "clang",
"linker": "wasm-ld",
"cflags": [
"--target=wasm32",
"-nostdlibinc",
"-Wno-macro-redefined",
"-Oz"
],
"ldflags": [
"--allow-undefined",
"--no-threads",
"--export-all"
],
"emulator": ["node", "targets/wasm_exec.js"]
}