mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 19:17:47 +00:00
wasm: add support for GOOS=wasip1
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.
This commit is contained in:
committed by
Ron Evans
parent
f4375d0452
commit
a545f17d2e
@@ -1,4 +1,4 @@
|
||||
//go:build !wasi && !darwin
|
||||
//go:build !wasi && !wasip1 && !darwin
|
||||
|
||||
package syscall
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build baremetal || wasm
|
||||
//go:build baremetal || (wasm && !wasip1)
|
||||
|
||||
// This file emulates some file-related functions that are only available
|
||||
// under a real operating system.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build !baremetal && !wasm
|
||||
//go:build !(baremetal || (wasm && !wasip1))
|
||||
|
||||
// This file assumes there is a libc available that runs on a real operating
|
||||
// system.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build baremetal || wasi || wasm
|
||||
//go:build baremetal || tinygo.wasm
|
||||
|
||||
// This file emulates some process-related functions that are only available
|
||||
// under a real operating system.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build !baremetal && !wasi && !wasm
|
||||
//go:build !baremetal && !tinygo.wasm
|
||||
|
||||
// This file assumes there is a libc available that runs on a real operating
|
||||
// system.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build darwin || nintendoswitch || wasi
|
||||
//go:build darwin || nintendoswitch || wasi || wasip1
|
||||
|
||||
package syscall
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build wasi
|
||||
//go:build wasi || wasip1
|
||||
|
||||
package syscall
|
||||
|
||||
|
||||
Reference in New Issue
Block a user