
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 строки
218 Б
Go
10 строки
218 Б
Go
//go:build baremetal || (wasm && !wasip1)
|
|
|
|
// This file emulates some file-related functions that are only available
|
|
// under a real operating system.
|
|
|
|
package syscall
|
|
|
|
func Getwd() (string, error) {
|
|
return "", nil
|
|
}
|