mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 21:13:39 +00:00
all: replace target=wasi with target=wasip1
This eliminates the 'wasi' build tag in favor of 'GOOS=wasip1', introduced in Go 1.21. For backwards compatablity, -target=wasi is a synonym for -target=wasip1.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//go:build (!wasi && !runtime_memhash_tsip && !runtime_memhash_leveldb) || (wasi && runtime_memhash_fnv)
|
||||
//go:build (!wasip1 && !runtime_memhash_tsip && !runtime_memhash_leveldb) || (wasip1 && runtime_memhash_fnv)
|
||||
|
||||
// This is the default for all targets except WASI, unless a more specific build
|
||||
// tag is set.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build runtime_memhash_leveldb || (wasi && !runtime_memhash_fnv && !runtime_memhash_tsip)
|
||||
//go:build runtime_memhash_leveldb || (wasip1 && !runtime_memhash_fnv && !runtime_memhash_tsip)
|
||||
|
||||
// This is the default for WASI, but can also be used on other targets with the
|
||||
// right build tag.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build linux && !baremetal && !nintendoswitch && !wasi && !wasm_unknown
|
||||
//go:build linux && !baremetal && !nintendoswitch && !wasip1 && !wasm_unknown
|
||||
|
||||
package runtime
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build (darwin || (linux && !baremetal && !wasi && !wasm_unknown)) && !nintendoswitch
|
||||
//go:build (darwin || (linux && !baremetal && !wasip1 && !wasm_unknown)) && !nintendoswitch
|
||||
|
||||
package runtime
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build tinygo.wasm && (wasi || wasip1)
|
||||
//go:build wasip1
|
||||
|
||||
package runtime
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build wasm && !wasi && !wasip1
|
||||
//go:build wasm && !wasip1
|
||||
|
||||
package runtime
|
||||
|
||||
|
||||
Reference in New Issue
Block a user