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

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

Issue 2832011: Change scripts/common.sh to allow the users build Valgrind binaries from the ... (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
« no previous file with comments | « scripts/build-memcheck-for-chromium.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/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 if system_is_snow_leopard
10 then
11 echo "ThreadSanitizer is not supported on Mac OS X 10.6 (Snow Leopard) yet."
12 exit 1
13 fi
9 14
10 POST_BUILD_HOOK_DEFINED=yes 15 POST_BUILD_HOOK_DEFINED=yes
11 post_build_hook() { 16 post_build_hook() {
12 PLATFORM=$1 17 PLATFORM=$1
13 cd "$THISDIR/tsan/tsan" 18 cd "$THISDIR/tsan/tsan"
14 19
15 SPECIAL_TARGET= 20 SPECIAL_TARGET=
16 SPECIAL_FLAGS= 21 SPECIAL_FLAGS=
17 # We can build two target architectures on a Linux x64 machine, so we should 22 # We can build two target architectures on a Linux x64 machine, so we should
18 # a) Use separate output directories, 23 # a) Use separate output directories,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 fi 89 fi
85 fi 90 fi
86 fi 91 fi
87 92
88 # Ugly hack! 93 # Ugly hack!
89 # We build Valrgind binaries in the $VG_TSAN_DIR/out and then pack 94 # 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 95 # them into self-contained .sh file into $ORIG_BINARIES_DIR/$PLATFORM
91 ORIG_BINARIES_DIR=$BINARIES_DIR 96 ORIG_BINARIES_DIR=$BINARIES_DIR
92 BINARIES_DIR="$VG_TSAN_DIR/out" 97 BINARIES_DIR="$VG_TSAN_DIR/out"
93 build_valgrind_for_available_platforms 98 build_valgrind_for_available_platforms
OLDNEW
« no previous file with comments | « scripts/build-memcheck-for-chromium.sh ('k') | scripts/common.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698