add configurable for amd64 CPUs to allow forcing usage of the compiler

This commit is contained in:
kim 2025-03-04 11:30:59 +00:00
commit 05ac6654a1

View file

@ -133,7 +133,8 @@ func compilerSupported() bool {
} }
switch runtime.GOARCH { switch runtime.GOARCH {
case "amd64": case "amd64":
return cpu.X86.HasSSE41 return cpu.X86.HasSSE41 ||
os.Getenv("GTS_WAZERO_FORCE_COMPILER") != ""
case "arm64": case "arm64":
return true return true
default: default: