summaryrefslogtreecommitdiffstats
path: root/tools/clang
diff options
context:
space:
mode:
authorukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-21 05:53:16 +0000
committerukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-21 05:53:16 +0000
commit4425b7bcee3faa7d67d9965a194fab277a742bc9 (patch)
tree2388a5dbcebf1526fc37561c23feeb1d5c6a1059 /tools/clang
parent139d005b673324288cdef737dd7079fd469e2b68 (diff)
downloadchromium_src-4425b7bcee3faa7d67d9965a194fab277a742bc9.zip
chromium_src-4425b7bcee3faa7d67d9965a194fab277a742bc9.tar.gz
chromium_src-4425b7bcee3faa7d67d9965a194fab277a742bc9.tar.bz2
Download prebuilt llvm binary if tsan=1 or asan=1 defined in GYP_DEFINES
R=thakis@chromium.org,glider@chromium.org BUG=none Review URL: https://chromiumcodereview.appspot.com/11418110 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168994 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/clang')
-rwxr-xr-xtools/clang/scripts/update.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/clang/scripts/update.sh b/tools/clang/scripts/update.sh
index d2d8ba7..330462f 100755
--- a/tools/clang/scripts/update.sh
+++ b/tools/clang/scripts/update.sh
@@ -72,7 +72,8 @@ done
# --mac-only is passed in and the system isn't a mac. People who don't like this
# can just delete their third_party/llvm-build directory.
if [[ -n "$mac_only" ]] && [[ "${OS}" != "Darwin" ]] &&
- [[ "$GYP_DEFINES" != *clang=1* ]] && ! [[ -d "${LLVM_BUILD_DIR}" ]]; then
+ [[ ! ( "$GYP_DEFINES" =~ .*(clang|tsan|asan)=1.* ) ]] &&
+ ! [[ -d "${LLVM_BUILD_DIR}" ]]; then
exit 0
fi