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 {
case "amd64":
return cpu.X86.HasSSE41
return cpu.X86.HasSSE41 ||
os.Getenv("GTS_WAZERO_FORCE_COMPILER") != ""
case "arm64":
return true
default: