From: Josh Bleecher Snyder Date: Sat, 9 Mar 2024 16:50:44 +0000 (-0800) Subject: bindings/go : add linker flags to make metal work (#1944) X-Git-Tag: upstream/1.7.4~907 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=ccf022f970e8201758f3b2ad148bb366912a084a;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp 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 --- diff --git a/bindings/go/whisper.go b/bindings/go/whisper.go index 96606620..87da83f0 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