changeset 907:b40f29144e80 datarace

Enable ThreadSanitizer
author Chris Cannam
date Tue, 24 Feb 2015 17:42:00 +0000
parents 6d3220e7ecef
children
files .hgsubstate configure configure.ac platform-dataquay.pri
diffstat 4 files changed, 12 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/.hgsubstate	Mon Feb 09 10:31:07 2015 +0000
+++ b/.hgsubstate	Tue Feb 24 17:42:00 2015 +0000
@@ -1,5 +1,5 @@
 d16f0fd6db6104d87882bc43788a3bb1b0f8c528 dataquay
 879bdc878826bebec67130326f99397c430419b1 sv-dependency-builds
-7a671befc76df9b87b00c9eea4bb603c773966ec svapp
-ce1077bd663a337219375ed92b7f5564df7aa553 svcore
-2be9753651c8df0fd499a294811a30278a6e5ea2 svgui
+272316dc853af0773a396b0a2fa394bacb0506f0 svapp
+dfc1c7cd8297d25993103e5d4850c37b59a8ef20 svcore
+b70addc910d58a2494a821ba7823101e6d52c2fe svgui
--- a/configure	Mon Feb 09 10:31:07 2015 +0000
+++ b/configure	Tue Feb 24 17:42:00 2015 +0000
@@ -4364,9 +4364,10 @@
 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS"
 
 if test "x$GCC" = "xyes"; then
-        CXXFLAGS_DEBUG="-Wall -Wextra -Werror -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe"
-   	CXXFLAGS_RELEASE="-g0 -O2 -Wall -pipe"
-   	CXXFLAGS_MINIMAL="-g0 -O0"
+        CXXFLAGS_DEBUG="-std=c++11 -fpie -pie -fsanitize=thread -Wall -Wextra -Werror -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe"
+	LIBS="$LIBS -std=c++11 -fpie -pie -fsanitize=thread"
+   	CXXFLAGS_RELEASE="-std=c++11 -g0 -O2 -Wall -pipe"
+   	CXXFLAGS_MINIMAL="-std=c++11 -g0 -O0"
 fi
 
 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE"
--- a/configure.ac	Mon Feb 09 10:31:07 2015 +0000
+++ b/configure.ac	Tue Feb 24 17:42:00 2015 +0000
@@ -53,7 +53,8 @@
 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS"
 
 if test "x$GCC" = "xyes"; then
-        CXXFLAGS_DEBUG="-std=c++11 -Wall -Wextra -Werror -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe"
+        CXXFLAGS_DEBUG="-std=c++11 -fpie -pie -fsanitize=thread -Wall -Wextra -Werror -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe"
+	LIBS="$LIBS -std=c++11 -fpie -pie -fsanitize=thread"
    	CXXFLAGS_RELEASE="-std=c++11 -g0 -O2 -Wall -pipe"
    	CXXFLAGS_MINIMAL="-std=c++11 -g0 -O0"
 fi
--- a/platform-dataquay.pri	Mon Feb 09 10:31:07 2015 +0000
+++ b/platform-dataquay.pri	Tue Feb 24 17:42:00 2015 +0000
@@ -9,6 +9,9 @@
 QMAKE_CXXFLAGS -= -I/usr/include/rasqal -I/usr/include/raptor2
 EXTRALIBS -= -lrdf
 
+##!!! for now:
+QMAKE_CXXFLAGS -= -Werror
+
 DEFINES += USE_SORD
 # Libraries and paths should be added by config.pri