tinygo/targets/wasm.json
Ayke van Laethem 31d57fd3d1 main: use wasm-ld instead of wasm-ld-8 on macOS
This commit does a few things:
  * remove the -8 suffix on macOS, where it is not necessary
  * add smoke tests for compiling wasm files on Linux and macOS
2019-04-04 12:50:15 +02:00

17 строки
350 Б
JSON

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