summaryrefslogtreecommitdiff
path: root/vendor/github.com/tetratelabs/wazero/config_supported.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/config_supported.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/config_supported.go')
-rw-r--r--vendor/github.com/tetratelabs/wazero/config_supported.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/vendor/github.com/tetratelabs/wazero/config_supported.go b/vendor/github.com/tetratelabs/wazero/config_supported.go
index eb31ab935..214c2bb8c 100644
--- a/vendor/github.com/tetratelabs/wazero/config_supported.go
+++ b/vendor/github.com/tetratelabs/wazero/config_supported.go
@@ -5,10 +5,15 @@
//
// Meanwhile, users who know their runtime.GOOS can operate with the compiler
// may choose to use NewRuntimeConfigCompiler explicitly.
-//go:build (amd64 || arm64) && (darwin || linux || freebsd || windows)
+//go:build (amd64 || arm64) && (linux || darwin || freebsd || netbsd || dragonfly || solaris || windows)
package wazero
+import "github.com/tetratelabs/wazero/internal/platform"
+
func newRuntimeConfig() RuntimeConfig {
- return NewRuntimeConfigCompiler()
+ if platform.CompilerSupported() {
+ return NewRuntimeConfigCompiler()
+ }
+ return NewRuntimeConfigInterpreter()
}