From c13b1dca84ac7af78b20750c82bca9ef1c340c21 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Tue, 5 Mar 2024 08:27:02 -0800 Subject: [PATCH] bindings/go : add linker flags to make metal work The first two are required to build. The last one is to make it actually detect the GPU. Fixes #1899, at least for me --- bindings/go/whisper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/go/whisper.go b/bindings/go/whisper.go index 9660662084f..87da83f0f10 100644 --- a/bindings/go/whisper.go +++ b/bindings/go/whisper.go @@ -10,7 +10,7 @@ import ( /* #cgo LDFLAGS: -lwhisper -lm -lstdc++ -#cgo darwin LDFLAGS: -framework Accelerate +#cgo darwin LDFLAGS: -framework Accelerate -framework Metal -framework Foundation -framework CoreGraphics #include #include