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 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 Loading... |
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 |
OLD | NEW |