From 76d8f6128a90e260db237e2652997403833dd83f Mon Sep 17 00:00:00 2001 From: Dariusz Orzechowski Date: Mon, 20 Jul 2020 11:39:52 +0200 Subject: [PATCH] Fix popcnt option in makefile --- src/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 35e56326..084b8d6b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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)