aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Stepanov <ivanstepanovftw@gmail.com>2023-04-05 17:38:37 +0300
committerGitHub <noreply@github.com>2023-04-05 17:38:37 +0300
commit0c44427df10ee024b4e7ef7bfec56e993daff1db (patch)
tree877ab77052f660a411a5c45ce18ecba18b5ab136
parent594cc95fabab0b662dabba3ea619ca5dca18bf6b (diff)
make : missing host optimizations in CXXFLAGS (#763)
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2f828bf..cb14ffd 100644
--- a/Makefile
+++ b/Makefile
@@ -72,6 +72,7 @@ endif
ifeq ($(UNAME_M),$(filter $(UNAME_M),x86_64 i686))
# Use all CPU extensions that are available:
CFLAGS += -march=native -mtune=native
+ CXXFLAGS += -march=native -mtune=native
endif
ifneq ($(filter ppc64%,$(UNAME_M)),)
POWER9_M := $(shell grep "POWER9" /proc/cpuinfo)