Commit ceb49dda authored by Hans Wennborg's avatar Hans Wennborg Committed by Commit Bot

Clang: the tip-of-tree version is now 11.0.0

Bug: 1042192
Change-Id: I9770af6d0aa0cc42e311c8eef8046dd9ae21849c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2000630Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#731960}
parent 3ad2aceb
......@@ -37,7 +37,12 @@ if (generate_linker_map) {
declare_args() {
if (is_clang) {
# Clang compiler version. Clang files are placed at version-dependent paths.
clang_version = "10.0.0"
if (llvm_force_head_revision) {
clang_version = "11.0.0"
} else {
# TODO(crbug.com/1042192): Remove in the next Clang roll.
clang_version = "10.0.0"
}
}
}
......
......@@ -338,6 +338,15 @@ def main():
default=sys.platform in ('linux2', 'darwin'))
args = parser.parse_args()
# TODO(crbug.com/1042192): Remove in the next Clang roll.
if args.llvm_force_head_revision:
global RELEASE_VERSION
RELEASE_VERSION = '11.0.0'
old_lib_dir = os.path.join(LLVM_BUILD_DIR, 'lib', 'clang', '10.0.0')
if (os.path.isdir(old_lib_dir)):
print('Removing old lib dir: ' + old_lib_dir)
RmTree(old_lib_dir)
if args.lto_lld and not args.bootstrap:
print('--lto-lld requires --bootstrap')
return 1
......
......@@ -45,6 +45,7 @@ CLANG_SUB_REVISION = 1
PACKAGE_VERSION = '%s-%s-%s' % (CLANG_SVN_REVISION, CLANG_REVISION[:8],
CLANG_SUB_REVISION)
# TODO(crbug.com/985289): Bump to 11.0.0 in the next Clang roll.
RELEASE_VERSION = '10.0.0'
......@@ -340,6 +341,11 @@ def main():
help='Verify that clang has the passed-in version.')
args = parser.parse_args()
# TODO(crbug.com/1042192): Remove in the next Clang roll.
if args.llvm_force_head_revision:
global RELEASE_VERSION
RELEASE_VERSION = '11.0.0'
if args.force_local_build:
print(('update.py --force-local-build is no longer used to build clang; '
'use build.py instead.'))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment