From ded17dc1cf552f9236136a41c767fd404e384fa7 Mon Sep 17 00:00:00 2001 From: Christian <12550267+iceychris@users.noreply.github.com> Date: Tue, 25 Jul 2023 18:12:03 +0200 Subject: [PATCH] make : fix CLBlast build on MacOS (#1120) --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5c46d29..37ca382 100644 --- a/Makefile +++ b/Makefile @@ -192,11 +192,17 @@ endif ifdef WHISPER_CLBLAST CFLAGS += -DGGML_USE_CLBLAST - LDFLAGS += -lclblast -lOpenCL + CXXFLAGS += -DGGML_USE_CLBLAST + LDFLAGS += -lclblast + ifeq ($(UNAME_S),Darwin) + LDFLAGS += -framework OpenCL + else + LDFLAGS += -lOpenCL + endif WHISPER_OBJ += ggml-opencl.o ggml-opencl.o: ggml-opencl.cpp ggml-opencl.h - $(CC) $(CFLAGS) -c $< -o $@ + $(CXX) $(CXXFLAGS) -c $< -o $@ endif ifdef WHISPER_GPROF