
This adds true GOOS=wasip1 support in addition to our existing -target=wasi support. The old support for WASI isn't removed, but should be treated as deprecated and will likely be removed eventually to reduce the test burden.
10 строки
322 Б
Go
10 строки
322 Б
Go
//go:build wasip1
|
|
|
|
package runtime
|
|
|
|
// The actual GOOS=wasip1, as newly added in the Go 1.21 toolchain.
|
|
// Previously we supported -target=wasi, but that was essentially faked by using
|
|
// linux/arm instead because that was the closest thing that was already
|
|
// supported in the Go standard library.
|
|
|
|
const GOOS = "wasip1"
|