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

Unified Diff: tools/clang/scripts/update.py

Issue 1239653004: Update Clang build script and gyp file for 3.8.0 version bump (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: grab the full lib dir in the .isolates file Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/win/asan.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/scripts/update.py
diff --git a/tools/clang/scripts/update.py b/tools/clang/scripts/update.py
index 74c04e71c09c0d64b0a4bdebade9c25cdba998eb..8fc5249828dcac9408a14b1fdada99fc2490959d 100755
--- a/tools/clang/scripts/update.py
+++ b/tools/clang/scripts/update.py
@@ -697,6 +697,8 @@ def main():
help="don't try to download prebuild binaries")
parser.add_argument('--print-revision', action='store_true',
help='print current clang revision and exit.')
+ parser.add_argument('--print-clang-version', action='store_true',
+ help='print current clang version (e.g. x.y.z) and exit.')
parser.add_argument('--run-tests', action='store_true',
help='run tests after building; only for local builds')
parser.add_argument('--tools', nargs='*',
@@ -728,6 +730,11 @@ def main():
if not is_clang_required:
return 0
+ if use_head_revision:
+ # TODO(hans): Remove after the next roll.
+ global VERSION
+ VERSION = '3.8.0'
+
global LLVM_WIN_REVISION, PACKAGE_VERSION
if args.print_revision:
if use_head_revision:
@@ -736,6 +743,10 @@ def main():
print PACKAGE_VERSION
return 0
+ if args.print_clang_version:
+ sys.stdout.write(VERSION)
+ return 0
+
if re.search(r'\b(make_clang_dir)=', os.environ.get('GYP_DEFINES', '')):
print 'Skipping Clang update (make_clang_dir= was set in GYP_DEFINES).'
return 0
« no previous file with comments | « build/win/asan.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698