File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,15 @@ ifeq ($(OS),Darwin)
118118 ifeq ($(BUILD_TYPE),metal)
119119# -lcblas removed: it seems to always be listed as a duplicate flag.
120120 CGO_LDFLAGS += -framework Accelerate
121+ CGO_LDFLAGS_WHISPER+=-lggml-metal -lggml-blas
121122 CMAKE_ARGS+=-DGGML_METAL=ON
122- CGO_LDFLAGS_WHISPER+=-lggml-metal
123+ CMAKE_ARGS+=-DGGML_METAL_USE_BF16=ON
124+ CMAKE_ARGS+=-DGGML_METAL_EMBED_LIBRARY=ON
125+ CMAKE_ARGS+=-DWHISPER_BUILD_EXAMPLES=OFF
126+ CMAKE_ARGS+=-DWHISPER_BUILD_TESTS=OFF
127+ CMAKE_ARGS+=-DWHISPER_BUILD_SERVER=OFF
128+ CMAKE_ARGS+=-DGGML_OPENMP=OFF
129+ export WHISPER_LIBRARY_PATH:=$(WHISPER_LIBRARY_PATH):$(WHISPER_DIR)/build/ggml/src-metal:$(WHISPER_DIR)/build/ggml/src-blas
123130 endif
124131else
125132CGO_LDFLAGS_WHISPER+ =-lgomp
You can’t perform that action at this time.
0 commit comments