aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/wasm.json
blob: e8cdb5e15c83e8f71eec3f5569829da50e08dcc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
	"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",
		"--stack-first",
		"--export-all"
	],
	"emulator":      ["node", "targets/wasm_exec.js"]
}