From 05ac6654a1d7f1cee7456491e372ee971040f0cc Mon Sep 17 00:00:00 2001 From: kim Date: Tue, 4 Mar 2025 11:30:59 +0000 Subject: [PATCH] add configurable for amd64 CPUs to allow forcing usage of the compiler --- internal/media/ffmpeg/wasm.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/media/ffmpeg/wasm.go b/internal/media/ffmpeg/wasm.go index 29e547364..dcaed55d4 100644 --- a/internal/media/ffmpeg/wasm.go +++ b/internal/media/ffmpeg/wasm.go @@ -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: