summaryrefslogtreecommitdiff
path: root/vendor/github.com/tetratelabs/wazero/internal/platform/platform.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-11-26 16:25:48 +0000
committerLibravatar GitHub <noreply@github.com>2024-11-26 16:25:48 +0000
commit61f8f1e0e3236993f5522215f1900d35e49680c0 (patch)
treeb8bec737013b8213996a40ab913a810833ac5e4e /vendor/github.com/tetratelabs/wazero/internal/platform/platform.go
parent[bugfix] Allow unsetting filter expiration dates (#3560) (diff)
downloadgotosocial-61f8f1e0e3236993f5522215f1900d35e49680c0.tar.xz
pull in ncruces/go-sqlite3 v0.20.3 with tetratelabs/wazero v1.8.2 (#3574)
Diffstat (limited to 'vendor/github.com/tetratelabs/wazero/internal/platform/platform.go')
-rw-r--r--vendor/github.com/tetratelabs/wazero/internal/platform/platform.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/vendor/github.com/tetratelabs/wazero/internal/platform/platform.go b/vendor/github.com/tetratelabs/wazero/internal/platform/platform.go
index a27556240..b9af094c1 100644
--- a/vendor/github.com/tetratelabs/wazero/internal/platform/platform.go
+++ b/vendor/github.com/tetratelabs/wazero/internal/platform/platform.go
@@ -11,15 +11,16 @@ import (
// archRequirementsVerified is set by platform-specific init to true if the platform is supported
var archRequirementsVerified bool
-// CompilerSupported is exported for tests and includes constraints here and also the assembler.
+// CompilerSupported includes constraints here and also the assembler.
func CompilerSupported() bool {
switch runtime.GOOS {
- case "darwin", "windows", "linux", "freebsd":
+ case "linux", "darwin", "freebsd", "netbsd", "dragonfly", "windows":
+ return archRequirementsVerified
+ case "solaris", "illumos":
+ return runtime.GOARCH == "amd64" && archRequirementsVerified
default:
return false
}
-
- return archRequirementsVerified
}
// MmapCodeSegment copies the code into the executable region and returns the byte slice of the region.