@@ -142,13 +142,13 @@ ifneq ($(filter ppc64%,$(UNAME_M)),)
142
142
endif
143
143
endif
144
144
145
- #ifndef WHISPER_NO_ACCELERATE
146
- # # Mac M1 - include Accelerate framework
147
- # ifeq ($(UNAME_S),Darwin)
148
- # PKG_CFLAGS += -DGGML_USE_ACCELERATE
149
- # PKG_LIBS += -framework Accelerate
150
- # endif
151
- # endif
145
+ ifdef WHISPER_ACCELERATE
146
+ # Mac M1 - include Accelerate framework
147
+ ifeq ($(UNAME_S),Darwin)
148
+ PKG_CFLAGS += -DGGML_USE_ACCELERATE
149
+ PKG_LIBS += -framework Accelerate
150
+ endif
151
+ endif
152
152
153
153
ifdef WHISPER_COREML
154
154
PKG_CPPFLAGS += -DWHISPER_USE_COREML
@@ -159,15 +159,15 @@ ifdef WHISPER_COREML_ALLOW_FALLBACK
159
159
endif
160
160
endif
161
161
162
- #ifndef WHISPER_NO_METAL
163
- # ifeq ($(UNAME_S),Darwin)
164
- # WHISPER_METAL := 1
165
- #
166
- # PKG_CFLAGS += -DGGML_USE_METAL
167
- # PKG_CPPFLAGS += -DGGML_USE_METAL
168
- # PKG_LIBS += -framework Foundation -framework Metal -framework MetalKit
169
- # endif
170
- # endif
162
+ ifdef WHISPER_METAL
163
+ ifeq ($(UNAME_S),Darwin)
164
+ WHISPER_METAL := 1
165
+
166
+ PKG_CFLAGS += -DGGML_USE_METAL
167
+ PKG_CPPFLAGS += -DGGML_USE_METAL
168
+ PKG_LIBS += -framework Foundation -framework Metal -framework MetalKit
169
+ endif
170
+ endif
171
171
172
172
## Note/TODO: removed sections on WHISPER_OPENBLAS / WHISPER_CUBLAS / WHISPER_HIPBLAS / WHISPER_CLBLAST
173
173
0 commit comments