Christian commited on
Commit
232f2a8
·
unverified ·
1 Parent(s): 01bbf00

make : fix CLBlast build on MacOS (#1120)

Browse files
Files changed (1) hide show
  1. Makefile +8 -2
Makefile CHANGED
@@ -192,11 +192,17 @@ endif
192
 
193
  ifdef WHISPER_CLBLAST
194
  CFLAGS += -DGGML_USE_CLBLAST
195
- LDFLAGS += -lclblast -lOpenCL
 
 
 
 
 
 
196
  WHISPER_OBJ += ggml-opencl.o
197
 
198
  ggml-opencl.o: ggml-opencl.cpp ggml-opencl.h
199
- $(CC) $(CFLAGS) -c $< -o $@
200
  endif
201
 
202
  ifdef WHISPER_GPROF
 
192
 
193
  ifdef WHISPER_CLBLAST
194
  CFLAGS += -DGGML_USE_CLBLAST
195
+ CXXFLAGS += -DGGML_USE_CLBLAST
196
+ LDFLAGS += -lclblast
197
+ ifeq ($(UNAME_S),Darwin)
198
+ LDFLAGS += -framework OpenCL
199
+ else
200
+ LDFLAGS += -lOpenCL
201
+ endif
202
  WHISPER_OBJ += ggml-opencl.o
203
 
204
  ggml-opencl.o: ggml-opencl.cpp ggml-opencl.h
205
+ $(CXX) $(CXXFLAGS) -c $< -o $@
206
  endif
207
 
208
  ifdef WHISPER_GPROF