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

Side by Side Diff: tools/clang/scripts/update.py

Issue 1693363002: add a mechanism to define clang tarball mirrors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use Nico's much simpler suggestion Created 4 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """This script is used to download prebuilt clang binaries. 6 """This script is used to download prebuilt clang binaries.
7 7
8 It is also used by package.py to build the prebuilt clang binaries.""" 8 It is also used by package.py to build the prebuilt clang binaries."""
9 9
10 import argparse 10 import argparse
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 LLVM_BUILD_TOOLS_DIR = os.path.abspath( 63 LLVM_BUILD_TOOLS_DIR = os.path.abspath(
64 os.path.join(LLVM_DIR, '..', 'llvm-build-tools')) 64 os.path.join(LLVM_DIR, '..', 'llvm-build-tools'))
65 STAMP_FILE = os.path.normpath( 65 STAMP_FILE = os.path.normpath(
66 os.path.join(LLVM_DIR, '..', 'llvm-build', 'cr_build_revision')) 66 os.path.join(LLVM_DIR, '..', 'llvm-build', 'cr_build_revision'))
67 BINUTILS_DIR = os.path.join(THIRD_PARTY_DIR, 'binutils') 67 BINUTILS_DIR = os.path.join(THIRD_PARTY_DIR, 'binutils')
68 VERSION = '3.9.0' 68 VERSION = '3.9.0'
69 ANDROID_NDK_DIR = os.path.join( 69 ANDROID_NDK_DIR = os.path.join(
70 CHROMIUM_DIR, 'third_party', 'android_tools', 'ndk') 70 CHROMIUM_DIR, 'third_party', 'android_tools', 'ndk')
71 71
72 # URL for pre-built binaries. 72 # URL for pre-built binaries.
73 CDS_URL = 'https://commondatastorage.googleapis.com/chromium-browser-clang' 73 CDS_URL = os.environ.get('CDS_CLANG_BUCKET_OVERRIDE',
74 'https://commondatastorage.googleapis.com/chromium-browser-clang')
74 75
75 LLVM_REPO_URL='https://llvm.org/svn/llvm-project' 76 LLVM_REPO_URL='https://llvm.org/svn/llvm-project'
76 if 'LLVM_REPO_URL' in os.environ: 77 if 'LLVM_REPO_URL' in os.environ:
77 LLVM_REPO_URL = os.environ['LLVM_REPO_URL'] 78 LLVM_REPO_URL = os.environ['LLVM_REPO_URL']
78 79
79 80
80 def DownloadUrl(url, output_file): 81 def DownloadUrl(url, output_file):
81 """Download url into output_file.""" 82 """Download url into output_file."""
82 CHUNK_SIZE = 4096 83 CHUNK_SIZE = 4096
83 TOTAL_DOTS = 10 84 TOTAL_DOTS = 10
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 args.force_local_build = True 764 args.force_local_build = True
764 if 'OS=android' not in os.environ.get('GYP_DEFINES', ''): 765 if 'OS=android' not in os.environ.get('GYP_DEFINES', ''):
765 # Only build the Android ASan rt on ToT bots when targetting Android. 766 # Only build the Android ASan rt on ToT bots when targetting Android.
766 args.with_android = False 767 args.with_android = False
767 768
768 return UpdateClang(args) 769 return UpdateClang(args)
769 770
770 771
771 if __name__ == '__main__': 772 if __name__ == '__main__':
772 sys.exit(main()) 773 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698