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

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

Issue 1516433003: Roll Clang 254793:255169 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years 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 | « build/config/clang/BUILD.gn ('k') | 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
11 import distutils.spawn 11 import distutils.spawn
12 import glob 12 import glob
13 import os 13 import os
14 import pipes 14 import pipes
15 import re 15 import re
16 import shutil 16 import shutil
17 import subprocess 17 import subprocess
18 import stat 18 import stat
19 import sys 19 import sys
20 import tarfile 20 import tarfile
21 import tempfile 21 import tempfile
22 import urllib2 22 import urllib2
23 import zipfile 23 import zipfile
24 24
25 # Do NOT CHANGE this if you don't know what you're doing -- see 25 # Do NOT CHANGE this if you don't know what you're doing -- see
26 # https://code.google.com/p/chromium/wiki/UpdatingClang 26 # https://code.google.com/p/chromium/wiki/UpdatingClang
27 # Reverting problematic clang rolls is safe, though. 27 # Reverting problematic clang rolls is safe, though.
28 CLANG_REVISION = '254793' 28 CLANG_REVISION = '255169'
29 29
30 use_head_revision = 'LLVM_FORCE_HEAD_REVISION' in os.environ 30 use_head_revision = 'LLVM_FORCE_HEAD_REVISION' in os.environ
31 if use_head_revision: 31 if use_head_revision:
32 CLANG_REVISION = 'HEAD' 32 CLANG_REVISION = 'HEAD'
33 33
34 # This is incremented when pushing a new build of Clang at the same revision. 34 # This is incremented when pushing a new build of Clang at the same revision.
35 CLANG_SUB_REVISION=1 35 CLANG_SUB_REVISION=1
36 36
37 PACKAGE_VERSION = "%s-%s" % (CLANG_REVISION, CLANG_SUB_REVISION) 37 PACKAGE_VERSION = "%s-%s" % (CLANG_REVISION, CLANG_SUB_REVISION)
38 38
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 args.force_local_build = True 776 args.force_local_build = True
777 if 'OS=android' not in os.environ.get('GYP_DEFINES', ''): 777 if 'OS=android' not in os.environ.get('GYP_DEFINES', ''):
778 # Only build the Android ASan rt on ToT bots when targetting Android. 778 # Only build the Android ASan rt on ToT bots when targetting Android.
779 args.with_android = False 779 args.with_android = False
780 780
781 return UpdateClang(args) 781 return UpdateClang(args)
782 782
783 783
784 if __name__ == '__main__': 784 if __name__ == '__main__':
785 sys.exit(main()) 785 sys.exit(main())
OLDNEW
« no previous file with comments | « build/config/clang/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698