summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormostynb <mostynb@opera.com>2016-02-15 09:47:37 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-15 17:49:30 +0000
commit9756e3ee8eb786f7806374e3862d173e1905a140 (patch)
tree514ea20357ff11491abd0faf32d49d0efaee87e7
parentf3af0deb47008a3cd12377b0a8728d5f7fa6bff4 (diff)
downloadchromium_src-9756e3ee8eb786f7806374e3862d173e1905a140.zip
chromium_src-9756e3ee8eb786f7806374e3862d173e1905a140.tar.gz
chromium_src-9756e3ee8eb786f7806374e3862d173e1905a140.tar.bz2
add a mechanism to define clang tarball mirrors
This patch adds a CDS_CLANG_BUCKET_OVERRIDE environment variable which can be used to override the default google storage api URL from which clang tarballs are downloaded. The goal here is to minimize load on the google storage mirrors, which can become blocked for external contributors, since it is apparently quite difficult to figure out why and how to get un-blocked. BUG=586146 Review URL: https://codereview.chromium.org/1693363002 Cr-Commit-Position: refs/heads/master@{#375472}
-rwxr-xr-xtools/clang/scripts/update.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/clang/scripts/update.py b/tools/clang/scripts/update.py
index 322359f..a57c967 100755
--- a/tools/clang/scripts/update.py
+++ b/tools/clang/scripts/update.py
@@ -70,7 +70,8 @@ ANDROID_NDK_DIR = os.path.join(
CHROMIUM_DIR, 'third_party', 'android_tools', 'ndk')
# URL for pre-built binaries.
-CDS_URL = 'https://commondatastorage.googleapis.com/chromium-browser-clang'
+CDS_URL = os.environ.get('CDS_CLANG_BUCKET_OVERRIDE',
+ 'https://commondatastorage.googleapis.com/chromium-browser-clang')
LLVM_REPO_URL='https://llvm.org/svn/llvm-project'
if 'LLVM_REPO_URL' in os.environ: