mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 05:53: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 && !wasip1 && !darwin
|
||||
//go:build !wasip1 && !darwin
|
||||
|
||||
package syscall
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build wasi || wasip1
|
||||
//go:build wasip1
|
||||
|
||||
package syscall
|
||||
|
||||
@@ -397,8 +397,16 @@ func Chmod(path string, mode uint32) (err error) {
|
||||
return Lstat(path, &stat)
|
||||
}
|
||||
|
||||
// wasmPageSize is the size of a page in WebAssembly's 32-bit memory. This
|
||||
// is also its only unit of change.
|
||||
//
|
||||
// See https://www.w3.org/TR/wasm-core-1/#page-size
|
||||
//
|
||||
// FIXME: this is also defined in package runtime.
|
||||
const wasmPageSize = 64 * 1024
|
||||
|
||||
func Getpagesize() int {
|
||||
return libc_getpagesize()
|
||||
return wasmPageSize
|
||||
}
|
||||
|
||||
type Utsname struct {
|
||||
Reference in New Issue
Block a user