Spaces:
Running
Running
bindings/go : add linker flags to make metal work (#1944)
Browse filesThe first two are required to build.
The last one is to make it actually detect the GPU.
Fixes #1899, at least for me
- 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 |
|