Skip to content

Commit ccf022f

Browse files
authored
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
1 parent 2852e1a commit ccf022f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindings/go/whisper.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
/*
1212
#cgo LDFLAGS: -lwhisper -lm -lstdc++
13-
#cgo darwin LDFLAGS: -framework Accelerate
13+
#cgo darwin LDFLAGS: -framework Accelerate -framework Metal -framework Foundation -framework CoreGraphics
1414
#include <whisper.h>
1515
#include <stdlib.h>
1616

0 commit comments

Comments
 (0)