Fix popcnt option in makefile

This commit is contained in:
Dariusz Orzechowski
2020-07-20 11:39:52 +02:00
parent c0bbce092b
commit 76d8f6128a

View File

@@ -394,7 +394,13 @@ endif
### 3.6 popcnt
ifeq ($(popcnt),yes)
CXXFLAGS += -DUSE_POPCNT
ifeq ($(arch),$(filter $(arch),ppc64 armv8-a))
CXXFLAGS += -DUSE_POPCNT
else ifeq ($(comp),icc)
CXXFLAGS += -msse3 -DUSE_POPCNT
else
CXXFLAGS += -msse3 -mpopcnt -DUSE_POPCNT
endif
endif
ifeq ($(avx2),yes)