josharian commited on
Commit
3dee0de
·
unverified ·
1 Parent(s): 1316242

bindings/go : add linker flags to make metal work (#1944)

Browse files

The first two are required to build.
The last one is to make it actually detect the GPU.

Fixes #1899, at least for me

Files changed (1) hide show
  1. bindings/go/whisper.go +1 -1
bindings/go/whisper.go CHANGED
@@ -10,7 +10,7 @@ import (
10
 
11
  /*
12
  #cgo LDFLAGS: -lwhisper -lm -lstdc++
13
- #cgo darwin LDFLAGS: -framework Accelerate
14
  #include <whisper.h>
15
  #include <stdlib.h>
16
 
 
10
 
11
  /*
12
  #cgo LDFLAGS: -lwhisper -lm -lstdc++
13
+ #cgo darwin LDFLAGS: -framework Accelerate -framework Metal -framework Foundation -framework CoreGraphics
14
  #include <whisper.h>
15
  #include <stdlib.h>
16