Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: scripts/build-tsan-for-chromium.sh

Issue 2746004: Restore deps/third_party/valgrind to its state at r48920 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/valgrind/
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # Copyright (c) 2009-2010 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2009-2010 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Script to build ThreadSanitizer binaries for use with chromium 7 # Script to build ThreadSanitizer binaries for use with chromium
8 source common.sh 8 source common.sh
9 9
10 POST_BUILD_HOOK_DEFINED=yes 10 POST_BUILD_HOOK_DEFINED=yes
(...skipping 13 matching lines...) Expand all
24 "linux_x86") 24 "linux_x86")
25 SPECIAL_FLAGS="OUTDIR=out32" 25 SPECIAL_FLAGS="OUTDIR=out32"
26 SPECIAL_TARGET="l32" 26 SPECIAL_TARGET="l32"
27 ;; 27 ;;
28 esac 28 esac
29 29
30 make -j4 $SPECIAL_FLAGS OFFLINE= PIN_ROOT= \ 30 make -j4 $SPECIAL_FLAGS OFFLINE= PIN_ROOT= \
31 VALGRIND_INST_ROOT="$BINARIES_DIR/$PLATFORM" \ 31 VALGRIND_INST_ROOT="$BINARIES_DIR/$PLATFORM" \
32 VALGRIND_ROOT="$VG_TSAN_DIR" $SPECIAL_TARGET 32 VALGRIND_ROOT="$VG_TSAN_DIR" $SPECIAL_TARGET
33 33
34 OUT_BIN="$ORIG_BINARIES_DIR/$PLATFORM/bin"
35 mkdir -p $OUT_BIN
36 # See below for the definition of ORIG_BINARIES_DIR 34 # See below for the definition of ORIG_BINARIES_DIR
37 $THISDIR/tsan/tsan/mk-self-contained-valgrind.sh \ 35 $THISDIR/tsan/tsan/mk-self-contained-valgrind.sh \
38 "$VG_TSAN_DIR/out/$PLATFORM" "tsan" \ 36 "$VG_TSAN_DIR/out/$PLATFORM" "tsan" \
39 "$OUT_BIN/valgrind-tsan.sh" 37 "$ORIG_BINARIES_DIR/$PLATFORM/bin/valgrind-tsan.sh"
40 } 38 }
41 39
42 TSAN_REV=2200 40 TSAN_REV=2088
43 TSAN_DIR="$THISDIR/tsan" # Directory to checkout TSan sources 41 TSAN_DIR="$THISDIR/tsan" # Directory to checkout TSan sources
44 rm -rf $TSAN_DIR 42 rm -rf $TSAN_DIR
45 svn co -r "$TSAN_REV" http://data-race-test.googlecode.com/svn/trunk $TSAN_DIR 43 svn co -r "$TSAN_REV" http://data-race-test.googlecode.com/svn/trunk $TSAN_DIR
46 44
47 # The separate .sh file defines Valgrind/VEX revisions. 45 # The separate .sh file defines Valgrind/VEX revisions.
48 source "tsan/third_party/valgrind_rev.sh" 46 source "tsan/third_party/valgrind_rev.sh"
49 47
50 VG_TSAN_DIR="$THISDIR/valgrind-tsan" # Directory to checkout Valgrind sources 48 VG_TSAN_DIR="$THISDIR/valgrind-tsan" # Directory to checkout Valgrind sources
51 checkout_and_patch_valgrind "$VALGRIND_REV" "$VEX_REV" "$VG_TSAN_DIR" 49 checkout_and_patch_valgrind "$VALGRIND_REV" "$VEX_REV" "$VG_TSAN_DIR"
52 50
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 fi 82 fi
85 fi 83 fi
86 fi 84 fi
87 85
88 # Ugly hack! 86 # Ugly hack!
89 # We build Valrgind binaries in the $VG_TSAN_DIR/out and then pack 87 # We build Valrgind binaries in the $VG_TSAN_DIR/out and then pack
90 # them into self-contained .sh file into $ORIG_BINARIES_DIR/$PLATFORM 88 # them into self-contained .sh file into $ORIG_BINARIES_DIR/$PLATFORM
91 ORIG_BINARIES_DIR=$BINARIES_DIR 89 ORIG_BINARIES_DIR=$BINARIES_DIR
92 BINARIES_DIR="$VG_TSAN_DIR/out" 90 BINARIES_DIR="$VG_TSAN_DIR/out"
93 build_valgrind_for_available_platforms 91 build_valgrind_for_available_platforms
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698