aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCameron Kaiser <classilla@users.noreply.github.com>2023-03-24 08:19:26 -0700
committerGitHub <noreply@github.com>2023-03-24 17:19:26 +0200
commit481044d50cfe8eaa6cd0c1a1b445680e4b0b3ebc (patch)
tree468821a2e00d2def5c98a7419cce7ec836d880d9 /Makefile
parent563cdc391dde140f1084d1012234e8e6f57f881f (diff)
additional optimizations for POWER9 (#454)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 91eebae..e8b128c 100644
--- a/Makefile
+++ b/Makefile
@@ -156,7 +156,8 @@ endif
ifneq ($(filter ppc64%,$(UNAME_M)),)
POWER9_M := $(shell grep "POWER9" /proc/cpuinfo)
ifneq (,$(findstring POWER9,$(POWER9_M)))
- CFLAGS += -mpower9-vector
+ CFLAGS += -mcpu=power9
+ CXXFLAGS += -mcpu=power9
endif
# Require c++23's std::byteswap for big-endian support.
ifeq ($(UNAME_M),ppc64)