From 69afd3be275f0cca3df82f5843f276a349cc93f3 Mon Sep 17 00:00:00 2001 From: "dkegel@google.com" Date: Mon, 27 Jul 2009 17:56:32 +0000 Subject: Add experimental TSAN support (off by default) Review URL: http://codereview.chromium.org/160042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21659 0039d316-1c4b-4281-b951-d872f2087c98 --- tools/valgrind/build-valgrind-for-chromium.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tools/valgrind/build-valgrind-for-chromium.sh b/tools/valgrind/build-valgrind-for-chromium.sh index c85a88f..652fe0b 100755 --- a/tools/valgrind/build-valgrind-for-chromium.sh +++ b/tools/valgrind/build-valgrind-for-chromium.sh @@ -12,6 +12,7 @@ then if test -x /usr/bin/ld.orig then echo "Using /usr/bin/ld.orig instead of gold to link valgrind" + test -d $THISDIR/override_ld && rm -rf $THISDIR/override_ld mkdir $THISDIR/override_ld ln -s /usr/bin/ld.orig $THISDIR/override_ld/ld PATH="$THISDIR/override_ld:$PATH" @@ -47,6 +48,18 @@ patch -p0 < "$THISDIR"/longlines.patch #wget -O possible.patch https://bugs.kde.org/attachment.cgi?id=35559 patch -p0 < "$THISDIR"/possible.patch +if [ "$INSTALL_TSAN" = "yes" ] +then + # Add ThreadSanitier to the installation. + # ThreadSanitizer is an experimental dynamic data race detector. + # See http://code.google.com/p/data-race-test/wiki/ThreadSanitizer + svn checkout -r 1096 http://data-race-test.googlecode.com/svn/trunk/tsan tsan + mkdir tsan/{docs,tests} + touch tsan/{docs,tests}/Makefile.am + patch -p 0 < tsan/valgrind.patch + patch -p 0 -d VEX < tsan/vex.patch +fi + sh autogen.sh ./configure --prefix=/usr/local/valgrind-20090715 make -j4 -- cgit v1.1