comparison configure @ 1032:dfc1c7cd8297 datarace

Enable ThreadSanitizer
author Chris Cannam
date Tue, 24 Feb 2015 17:42:00 +0000
parents dbb7f0ab011e
children
comparison
equal deleted inserted replaced
1027:ce1077bd663a 1032:dfc1c7cd8297
4341 CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS" 4341 CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS"
4342 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS" 4342 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS"
4343 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS" 4343 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS"
4344 4344
4345 if test "x$GCC" = "xyes"; then 4345 if test "x$GCC" = "xyes"; then
4346 CXXFLAGS_DEBUG="-std=c++11 -Wall -Wextra -Werror -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe" 4346 CXXFLAGS_DEBUG="-std=c++11 -fpie -pie -fsanitize=thread -Wall -Wextra -Werror -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe"
4347 LIBS="$LIBS -std=c++11 -fpie -pie -fsanitize=thread"
4347 CXXFLAGS_RELEASE="-std=c++11 -g0 -O2 -Wall -pipe" 4348 CXXFLAGS_RELEASE="-std=c++11 -g0 -O2 -Wall -pipe"
4348 CXXFLAGS_MINIMAL="-std=c++11 -g0 -O0" 4349 CXXFLAGS_MINIMAL="-std=c++11 -g0 -O0"
4349 fi 4350 fi
4350 4351
4351 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE" 4352 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE"