aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/wasip2.json
blob: b32a68197e8498ce0f1629c6531f949b22966ca5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
	"llvm-target":   "wasm32-unknown-wasi",
	"cpu":           "generic",
	"features":      "+bulk-memory,+mutable-globals,+nontrapping-fptoint,+sign-ext",
	"build-tags":    ["tinygo.wasm", "wasip2"],
	"goos":          "linux",
	"goarch":        "arm",
	"linker":        "wasm-ld",
	"libc":          "wasmbuiltins",
	"rtlib":         "compiler-rt",
	"scheduler":     "asyncify",
	"default-stack-size": 65536,
	"cflags": [
		"-mbulk-memory",
		"-mnontrapping-fptoint",
		"-msign-ext"
	],
	"ldflags": [
		"--stack-first",
		"--no-demangle",
		"--no-entry"
	],
	"extra-files": [
		"src/runtime/asm_tinygowasm.S"
	],
	"emulator": "wasmtime --wasm component-model -Sinherit-network -Sallow-ip-name-lookup --dir={tmpDir}::/tmp {}",
	"wit-package": "{root}/lib/wasi-cli/wit/",
	"wit-world": "wasi:cli/command"
}