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

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

Issue 1461003007: Roll clang 247874:253678 (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 | « no previous file | tools/clang/scripts/update.sh » ('j') | 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 """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 = '253678'
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 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 LLVM_WIN_REVISION = GetSvnRevision(LLVM_REPO_URL) 684 LLVM_WIN_REVISION = GetSvnRevision(LLVM_REPO_URL)
685 PACKAGE_VERSION = LLVM_WIN_REVISION + '-0' 685 PACKAGE_VERSION = LLVM_WIN_REVISION + '-0'
686 686
687 args.force_local_build = True 687 args.force_local_build = True
688 688
689 return UpdateClang(args) 689 return UpdateClang(args)
690 690
691 691
692 if __name__ == '__main__': 692 if __name__ == '__main__':
693 sys.exit(main()) 693 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | tools/clang/scripts/update.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698