comparison configure.ac @ 907:b40f29144e80 datarace

Enable ThreadSanitizer
author Chris Cannam
date Tue, 24 Feb 2015 17:42:00 +0000
parents 93a770ecfc98
children
comparison
equal deleted inserted replaced
903:6d3220e7ecef 907:b40f29144e80
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"