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

Side by Side Diff: scripts/common.sh

Issue 1596015: Use gcc-mp-4.4 to build TSan on Mac.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/valgrind/
Patch Set: '' Created 10 years, 8 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-tsan-for-chromium.sh ('k') | scripts/macports-gcc-wrapper/g++ » ('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 # This script contains some functions useful to build 7 # This script contains some functions useful to build
8 # Valgrind and ThreadSanitizer for use with chromium 8 # Valgrind and ThreadSanitizer for use with chromium
9 9
10 THISDIR=$(dirname "${0}") 10 THISDIR=$(dirname "${0}")
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 } 195 }
196 196
197 build_valgrind_for_available_platforms() { 197 build_valgrind_for_available_platforms() {
198 case `uname -sm` in 198 case `uname -sm` in
199 "Linux x86_64") 199 "Linux x86_64")
200 # We can build both 64/32-bit and 32-bit Valgrinds 200 # We can build both 64/32-bit and 32-bit Valgrinds
201 build_valgrind "linux_x64" 201 build_valgrind "linux_x64"
202 build_valgrind "linux_x86" "--enable-only32bit" 202 build_valgrind "linux_x86" "--enable-only32bit"
203 ;; 203 ;;
204 "Darwin i386") 204 "Darwin i386")
205 if [ `uname -r` != "9.7.0" ]; then 205 if uname -r | grep 9\.[0-9]\.[0-9] >/dev/null
206 echo "You have Darwin kernel different than 9.7.0" 206 then
207 echo "We've tested binaries built on 9.7.0 to work with 9.6.1, 9.7.0 and 9.8.0" 207 build_valgrind "mac"
208 else
209 echo "You have Darwin kernel different from 9.X.X" >&2
210 echo "Please, don't put the resulting binaries into Chromium SVN" >&2
208 build_valgrind "local" 211 build_valgrind "local"
209 else
210 build_valgrind "mac"
211 fi 212 fi
212 ;; 213 ;;
213 *) 214 *)
214 build_valgrind "local" 215 build_valgrind "local"
215 ;; 216 ;;
216 esac 217 esac
217 } 218 }
218 219
219 # Check that the binaries directory exists. 220 # Check that the binaries directory exists.
220 BINARIES_DIR="$THISDIR/../binaries" 221 BINARIES_DIR="$THISDIR/../binaries"
221 if ! [ -a $BINARIES_DIR ] 222 if ! [ -a $BINARIES_DIR ]
222 then 223 then
223 echo "Error: $BINARIES_DIR doesn't exist!" 224 echo "Error: $BINARIES_DIR doesn't exist!"
224 exit 1 225 exit 1
225 fi 226 fi
226 227
227 set -e 228 set -e
228 set -x 229 set -x
OLDNEW
« no previous file with comments | « scripts/build-tsan-for-chromium.sh ('k') | scripts/macports-gcc-wrapper/g++ » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698