From e7f09a0a61824e2d89afab33d8b764bce78f6271 Mon Sep 17 00:00:00 2001 From: Tienshiao Ma Date: Mon, 28 Nov 2022 23:29:34 -0800 Subject: [PATCH] Fix Darwin flags - was incorrectly always using the Linux else clause --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 07c91c10..75fdd73b 100644 --- a/Makefile +++ b/Makefile @@ -60,8 +60,7 @@ ifeq ($(UNAME_M),x86_64) ifneq (,$(findstring AVX2,$(AVX2_M))) CFLAGS += -mavx2 endif - endif - ifeq ($(UNAME_S),Linux) + else ifeq ($(UNAME_S),Linux) AVX1_M := $(shell grep "avx " /proc/cpuinfo) ifneq (,$(findstring avx,$(AVX1_M))) CFLAGS += -mavx