From 5fac7080bcbd4c4ea28b91a25d87003ea5052832 Mon Sep 17 00:00:00 2001 From: paboyle Date: Thu, 8 Mar 2018 13:01:24 +0000 Subject: [PATCH] Adding -fno-strict-aliasing by default --- configure.ac | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index cac454c9..852d97c2 100644 --- a/configure.ac +++ b/configure.ac @@ -19,13 +19,13 @@ AC_ARG_ENABLE([debug],[AC_HELP_STRING([--enable-debug=yes|no], [enable debug com [ac_DEBUG=${enable_debug}], [ac_DEBUG=no]) case ${ac_DEBUG} in yes) - CXXFLAGS="-g $CXXFLAGS" + CXXFLAGS="-g $CXXFLAGS " ;; no) - CXXFLAGS="-O3 $CXXFLAGS" + CXXFLAGS="-O3 $CXXFLAGS " ;; *) - CXXFLAGS="-O3 $CXXFLAGS" + CXXFLAGS="-O3 $CXXFLAGS " ;; esac @@ -237,11 +237,13 @@ AC_ARG_ENABLE([gen-simd-width], ##################### Compiler dependent choices case ${CXX} in nvcc) - CXX="nvcc -x cu" + CXX="nvcc -x cu " CXXLD="nvcc -link" + CXXFLAGS="$CXXFLAGS -Xcompiler -fno-strict-aliasing" ;; *) CXXLD=${CXX} + CXXFLAGS="$CXXFLAGS -fno-strict-aliasing" ;; esac