From 3238a8452dd57ae5633a8efc1f4dd27f1df73e5c Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Sat, 9 Mar 2024 08:50:44 -0800 Subject: [PATCH] bindings/go : add linker flags to make metal work (#1944) 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