| OLD | NEW |
| 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 14 matching lines...) Expand all Loading... |
| 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 # See below for the definition of ORIG_BINARIES_DIR | 34 # See below for the definition of ORIG_BINARIES_DIR |
| 35 $THISDIR/tsan/tsan_binary/mk-self-contained-tsan.sh \ | 35 $THISDIR/tsan/tsan/mk-self-contained-valgrind.sh \ |
| 36 "$VG_TSAN_DIR/out/$PLATFORM" \ | 36 "$VG_TSAN_DIR/out/$PLATFORM" "tsan" \ |
| 37 "$ORIG_BINARIES_DIR/$PLATFORM/bin/valgrind-tsan.sh" | 37 "$ORIG_BINARIES_DIR/$PLATFORM/bin/valgrind-tsan.sh" |
| 38 } | 38 } |
| 39 | 39 |
| 40 TSAN_REV=1860 | 40 TSAN_REV=1970 |
| 41 TSAN_DIR="$THISDIR/tsan" # Directory to checkout TSan sources | 41 TSAN_DIR="$THISDIR/tsan" # Directory to checkout TSan sources |
| 42 rm -rf $TSAN_DIR | 42 rm -rf $TSAN_DIR |
| 43 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 |
| 44 | 44 |
| 45 # The separate .sh file defines Valgrind/VEX revisions. | 45 # The separate .sh file defines Valgrind/VEX revisions. |
| 46 source "tsan/third_party/valgrind_rev.sh" | 46 source "tsan/third_party/valgrind_rev.sh" |
| 47 | 47 |
| 48 VG_TSAN_DIR="$THISDIR/valgrind-tsan" # Directory to checkout Valgrind sources | 48 VG_TSAN_DIR="$THISDIR/valgrind-tsan" # Directory to checkout Valgrind sources |
| 49 checkout_and_patch_valgrind "$VALGRIND_REV" "$VEX_REV" "$VG_TSAN_DIR" | 49 checkout_and_patch_valgrind "$VALGRIND_REV" "$VEX_REV" "$VG_TSAN_DIR" |
| 50 | 50 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 81 fi | 81 fi |
| 82 fi | 82 fi |
| 83 fi | 83 fi |
| 84 | 84 |
| 85 # Ugly hack! | 85 # Ugly hack! |
| 86 # We build Valrgind binaries in the $VG_TSAN_DIR/out and then pack | 86 # We build Valrgind binaries in the $VG_TSAN_DIR/out and then pack |
| 87 # them into self-contained .sh file into $ORIG_BINARIES_DIR/$PLATFORM | 87 # them into self-contained .sh file into $ORIG_BINARIES_DIR/$PLATFORM |
| 88 ORIG_BINARIES_DIR=$BINARIES_DIR | 88 ORIG_BINARIES_DIR=$BINARIES_DIR |
| 89 BINARIES_DIR="$VG_TSAN_DIR/out" | 89 BINARIES_DIR="$VG_TSAN_DIR/out" |
| 90 build_valgrind_for_available_platforms | 90 build_valgrind_for_available_platforms |
| OLD | NEW |