aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/wasm.json
blob: 6208eb27f7d91909807507e4cdf44bf899bef39c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
	"llvm-target":   "wasm32--wasi",
	"build-tags":    ["js", "wasm"],
	"goos":          "js",
	"goarch":        "wasm",
	"linker":        "wasm-ld",
	"libc":          "wasi-libc",
	"cflags": [
		"--target=wasm32--wasi",
		"--sysroot={root}/lib/wasi-libc/sysroot",
		"-Oz"
	],
	"ldflags": [
		"--allow-undefined",
		"--stack-first",
		"--no-demangle"
	],
	"emulator":      ["node", "targets/wasm_exec.js"],
	"wasm-abi":      "js"
}