FreeBSD was disabled due to lack of testing. This works around the compilation problems. Note: We can't currently test arm64 automatically! Notes: * GitHub Actions doesn’t support FreeBSD, and may never. * We could use Travis to run FreeBSD, but it would split our CI config. * Using Vagrant directly is easier to debug than vmactions/freebsd-vm. * GitHub Actions only supports virtualization on MacOS. * GitHub Actions removed vagrant from the image starting with macos-11. * Since VirtualBox doesn't work on arm64, freebsd/arm64 is untestabl Signed-off-by: Adrian Cole <adrian@tetrate.io> Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io> Co-authored-by: Takeshi Yoneda <takeshi@tetrate.io>
23 lines
440 B
Go
23 lines
440 B
Go
//go:build !(darwin || linux || freebsd || windows)
|
|
|
|
package platform
|
|
|
|
import (
|
|
"fmt"
|
|
"runtime"
|
|
)
|
|
|
|
var errUnsupported = fmt.Errorf("mmap unsupported on GOOS=%s. Use interpreter instead.", runtime.GOOS)
|
|
|
|
func munmapCodeSegment(code []byte) error {
|
|
panic(errUnsupported)
|
|
}
|
|
|
|
func mmapCodeSegmentAMD64(code []byte) ([]byte, error) {
|
|
panic(errUnsupported)
|
|
}
|
|
|
|
func mmapCodeSegmentARM64(code []byte) ([]byte, error) {
|
|
panic(errUnsupported)
|
|
}
|