Skip to content

Commit

Permalink
bindings/go : add linker flags to make metal work (#1944)
Browse files Browse the repository at this point in the history
The first two are required to build.
The last one is to make it actually detect the GPU.

Fixes #1899, at least for me
  • Loading branch information
josharian authored Mar 9, 2024
1 parent 2852e1a commit ccf022f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/go/whisper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit ccf022f

Please sign in to comment.