From: Christian Date: Tue, 25 Jul 2023 16:12:03 +0000 (+0200) Subject: make : fix CLBlast build on MacOS (#1120) X-Git-Tag: upstream/1.7.4~1372 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=ded17dc1cf552f9236136a41c767fd404e384fa7;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp make : fix CLBlast build on MacOS (#1120) --- diff --git a/Makefile b/Makefile index 5c46d295..37ca3823 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