Skip to content

Commit 365e261

Browse files
didzisvonstring
authored andcommitted
make : fix detection of AVX2 on macOS (ggml-org#1250)
1 parent 1f8ec75 commit 365e261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ endif
6767
# feel free to update the Makefile for your architecture and send a pull request or issue
6868
ifeq ($(UNAME_M),$(filter $(UNAME_M),x86_64 i686 amd64))
6969
ifeq ($(UNAME_S),Darwin)
70-
CPUINFO_CMD := sysctl machdep.cpu.features
70+
CPUINFO_CMD := sysctl machdep.cpu.features machdep.cpu.leaf7_features
7171
else ifeq ($(UNAME_S),Linux)
7272
CPUINFO_CMD := cat /proc/cpuinfo
7373
else ifneq (,$(filter MINGW32_NT% MINGW64_NT%,$(UNAME_S)))

0 commit comments

Comments
 (0)