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:
parent
2852e1af55
commit
ccf022f970
@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
#cgo LDFLAGS: -lwhisper -lm -lstdc++
|
#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 <whisper.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user