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

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

Issue 1474923002: Roll Clang 247874:254049 (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
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 """Windows can't run .sh files, so this is a Python implementation of 6 """Windows can't run .sh files, so this is a Python implementation of
7 update.sh. This script should replace update.sh on all platforms eventually.""" 7 update.sh. This script should replace update.sh on all platforms eventually."""
8 8
9 import argparse 9 import argparse
10 import contextlib 10 import contextlib
(...skipping 10 matching lines...) Expand all
21 import time 21 import time
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 # Note: this revision is only used for Windows. Other platforms use update.sh. 28 # Note: this revision is only used for Windows. Other platforms use update.sh.
29 # TODO(thakis): Use the same revision on Windows and non-Windows. 29 # TODO(thakis): Use the same revision on Windows and non-Windows.
30 # TODO(thakis): Remove update.sh, use update.py everywhere. 30 # TODO(thakis): Remove update.sh, use update.py everywhere.
31 LLVM_WIN_REVISION = '247874' 31 LLVM_WIN_REVISION = '254049'
32 32
33 use_head_revision = 'LLVM_FORCE_HEAD_REVISION' in os.environ 33 use_head_revision = 'LLVM_FORCE_HEAD_REVISION' in os.environ
34 if use_head_revision: 34 if use_head_revision:
35 LLVM_WIN_REVISION = 'HEAD' 35 LLVM_WIN_REVISION = 'HEAD'
36 36
37 # This is incremented when pushing a new build of Clang at the same revision. 37 # This is incremented when pushing a new build of Clang at the same revision.
38 CLANG_SUB_REVISION=1 38 CLANG_SUB_REVISION=1
39 39
40 PACKAGE_VERSION = "%s-%s" % (LLVM_WIN_REVISION, CLANG_SUB_REVISION) 40 PACKAGE_VERSION = "%s-%s" % (LLVM_WIN_REVISION, CLANG_SUB_REVISION)
41 41
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 742
743 args.force_local_build = True 743 args.force_local_build = True
744 # Skip local patches when using HEAD: they probably don't apply anymore. 744 # Skip local patches when using HEAD: they probably don't apply anymore.
745 args.with_patches = False 745 args.with_patches = False
746 746
747 return UpdateClang(args) 747 return UpdateClang(args)
748 748
749 749
750 if __name__ == '__main__': 750 if __name__ == '__main__':
751 sys.exit(main()) 751 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698