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
This commit is contained in:
Josh Bleecher Snyder 2024-03-09 08:50:44 -08:00 committed by GitHub
parent 2852e1af55
commit ccf022f970
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 <whisper.h>
#include <stdlib.h>