diff options
author | dkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-27 17:56:32 +0000 |
---|---|---|
committer | dkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-27 17:56:32 +0000 |
commit | 69afd3be275f0cca3df82f5843f276a349cc93f3 (patch) | |
tree | a7b38131b27854387fb4645060517e0e85edf90f /tools | |
parent | 56ebdfd3a7a7c8fadbf5bea17aaf7b4cef0bae8b (diff) | |
download | chromium_src-69afd3be275f0cca3df82f5843f276a349cc93f3.zip chromium_src-69afd3be275f0cca3df82f5843f276a349cc93f3.tar.gz chromium_src-69afd3be275f0cca3df82f5843f276a349cc93f3.tar.bz2 |
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
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/valgrind/build-valgrind-for-chromium.sh | 13 |
1 files changed, 13 insertions, 0 deletions
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 |