wa-lang.org/wazero@v1.0.2/internal/platform/mmap_unsupported.go (about) 1 //go:build !(darwin || linux || freebsd || windows) 2 3 package platform 4 5 import ( 6 "fmt" 7 "io" 8 "runtime" 9 ) 10 11 var errUnsupported = fmt.Errorf("mmap unsupported on GOOS=%s. Use interpreter instead.", runtime.GOOS) 12 13 func munmapCodeSegment(code []byte) error { 14 panic(errUnsupported) 15 } 16 17 func mmapCodeSegmentAMD64(code io.Reader, size int) ([]byte, error) { 18 panic(errUnsupported) 19 } 20 21 func mmapCodeSegmentARM64(code io.Reader, size int) ([]byte, error) { 22 panic(errUnsupported) 23 }