comparison configure.ac @ 899:b70addc910d5 datarace

Enable ThreadSanitizer
author Chris Cannam
date Tue, 24 Feb 2015 17:42:00 +0000
parents 899c4d7e7e63
children
comparison
equal deleted inserted replaced
898:2be9753651c8 899:b70addc910d5
51 CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS" 51 CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS"
52 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS" 52 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS"
53 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS" 53 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS"
54 54
55 if test "x$GCC" = "xyes"; then 55 if test "x$GCC" = "xyes"; then
56 CXXFLAGS_DEBUG="-std=c++11 -Wall -Wextra -Werror -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe" 56 CXXFLAGS_DEBUG="-std=c++11 -fpie -pie -fsanitize=thread -Wall -Wextra -Werror -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe"
57 LIBS="$LIBS -std=c++11 -fpie -pie -fsanitize=thread"
57 CXXFLAGS_RELEASE="-std=c++11 -g0 -O2 -Wall -pipe" 58 CXXFLAGS_RELEASE="-std=c++11 -g0 -O2 -Wall -pipe"
58 CXXFLAGS_MINIMAL="-std=c++11 -g0 -O0" 59 CXXFLAGS_MINIMAL="-std=c++11 -g0 -O0"
59 fi 60 fi
60 61
61 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE" 62 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE"