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

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

Issue 10694036: Allow to build 10.6 binaries on Darwin x86_64 (the following binaries were actually built on such). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/valgrind/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « binaries/mac_10.6/bin/valgrind-tsan.sh ('k') | scripts/common.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
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 if system_is_snow_leopard 9 if system_is_snow_leopard
10 then 10 then
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 echo -n "Do you want to continue using old gcc? (y/N)" 63 echo -n "Do you want to continue using old gcc? (y/N)"
64 read CONFIRMATION 64 read CONFIRMATION
65 if [ "$CONFIRMATION" != "y" ] 65 if [ "$CONFIRMATION" != "y" ]
66 then 66 then
67 exit 1 67 exit 1
68 fi 68 fi
69 fi 69 fi
70 # }}} 70 # }}}
71 } 71 }
72 72
73 TSAN_REV=3600 73 TSAN_REV=4383
Timur Iskhodzhanov 2012/07/05 11:05:00 Hm, I'd expect you to update the Linux&Windows bin
74 TSAN_DIR="$VG_SRC_DIR/tsan" # Directory to checkout TSan sources 74 TSAN_DIR="$VG_SRC_DIR/tsan" # Directory to checkout TSan sources
75 rm -rf "$TSAN_DIR" 75 rm -rf "$TSAN_DIR"
76 svn co -r "$TSAN_REV" http://data-race-test.googlecode.com/svn/trunk "$TSAN_DIR" 76 svn co -r "$TSAN_REV" http://data-race-test.googlecode.com/svn/trunk "$TSAN_DIR"
77 77
78 # Directory to checkout Valgrind sources 78 # Directory to checkout Valgrind sources
79 VG_TSAN_DIR="$TSAN_DIR/third_party/valgrind" 79 VG_TSAN_DIR="$TSAN_DIR/third_party/valgrind"
80 # Fetch sources from valgrind-variant 80 # Fetch sources from valgrind-variant
81 sh "$TSAN_DIR/third_party/update_valgrind.sh" 81 sh "$TSAN_DIR/third_party/update_valgrind.sh"
82 82
83 cd "$VG_TSAN_DIR" 83 cd "$VG_TSAN_DIR"
84 84
85 if [ `uname -s` == "Darwin" ] 85 if [ `uname -s` == "Darwin" ]
86 then 86 then
87 switch_gcc_for_darwin 87 switch_gcc_for_darwin
88 fi 88 fi
89 89
90 # Ugly hack! 90 # Ugly hack!
91 # We build Valrgind binaries in the $VG_TSAN_DIR/out and then pack 91 # We build Valrgind binaries in the $VG_TSAN_DIR/out and then pack
92 # them into self-contained .sh file into $ORIG_BINARIES_DIR/$PLATFORM 92 # them into self-contained .sh file into $ORIG_BINARIES_DIR/$PLATFORM
93 ORIG_BINARIES_DIR="$BINARIES_DIR" 93 ORIG_BINARIES_DIR="$BINARIES_DIR"
94 BINARIES_DIR="$VG_TSAN_DIR/out" 94 BINARIES_DIR="$VG_TSAN_DIR/out"
95 build_valgrind_for_available_platforms 95 build_valgrind_for_available_platforms
OLDNEW
« no previous file with comments | « binaries/mac_10.6/bin/valgrind-tsan.sh ('k') | scripts/common.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698