aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/wasm.json
blob: 06988a53b21dc771ac60da4446d8aa2a02a39484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
	"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"]
}