From afd7d0ea4d8ac031386ffc27f178c6dee49e0f89 Mon Sep 17 00:00:00 2001 From: nodchip Date: Sun, 19 Jul 2020 18:34:35 +0900 Subject: [PATCH] Fixed a bug that Makefile specifies -mpopcnt for armv8-a. --- src/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index a504ce27..4d56fc01 100644 --- a/src/Makefile +++ b/src/Makefile @@ -442,8 +442,10 @@ endif ### 3.6 popcnt ifeq ($(popcnt),yes) CXXFLAGS += -DUSE_POPCNT - ifeq ($(comp),$(filter $(comp),gcc clang mingw msys2)) - CXXFLAGS += -mpopcnt + ifneq ($(arch),$(filter $(arch),ppc64 armv8-a)) + ifeq ($(comp),$(filter $(comp),gcc clang mingw msys2)) + CXXFLAGS += -mpopcnt + endif endif endif