diff options
author | Wayne Davison <wayne@opencoder.net> | 2020-06-21 08:05:19 -0700 |
---|---|---|
committer | Wayne Davison <wayne@opencoder.net> | 2020-06-21 08:05:19 -0700 |
commit | 7e95ba87878dc053355ef3829aa20a24060cd4f6 (patch) | |
tree | ae8d46d570ef0c8bc8ae0759a94945d595dbeae3 /configure.ac | |
parent | 66fd34ed848b5cc4a14cd2bdd52037789f1411a5 (diff) | |
download | rsync-7e95ba87878dc053355ef3829aa20a24060cd4f6.tar.gz |
Add -fno-slp-vectorize to clang++.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index cc6769ab..d8bc1013 100644 --- a/configure.ac +++ b/configure.ac @@ -249,6 +249,9 @@ if test x"$SIMD" != x""; then SIMD='$(SIMD_'"$SIMD)" # We only use c++ for its target attribute dispatching, disable unneeded bulky features CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-rtti" + case "$CXX" in + *clang*) CXXFLAGS="$CXXFLAGS -fno-slp-vectorize" ;; # avoid a performance hit + esac else AC_MSG_RESULT(no) fi |