Skip to content

Commit 86e14c2

Browse files
committed
Apply '-march=native' in all non-Power architectures
1 parent e691c0d commit 86e14c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

configure.ac

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ AC_PROG_CXX
1111

1212
# Default CXXFLAGS.
1313
CXXFLAGS="-O3 -std=c++17 -Wall -Wpedantic -Wno-unused-command-line-argument "$CXXFLAGS
14-
if test $(uname -m) == "x86_64"; then
15-
CXXFLAGS="-march=native "$CXXFLAGS
16-
elif test $(uname -m) == "ppc64le" || test $(uname -m) == "ppc64"; then
14+
if test $(uname -m) == "ppc64le" || test $(uname -m) == "ppc64"; then
1715
CXXFLAGS="-mcpu=native "$CXXFLAGS
16+
else
17+
CXXFLAGS="-march=native "$CXXFLAGS
1818
fi
1919

2020
# Default LIBS

0 commit comments

Comments
 (0)