clang/update.py: Build only the targets that we need.
See bug for details.
Bug: 919267
Change-Id: Ied50d4cea6d2302ab6e738c8ed50ba96f6d0d482
Reviewed-on: https://chromium-review.googlesource.com/c/1407652
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Peter Collingbourne <pcc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#622294}
diff --git a/tools/clang/scripts/update.py b/tools/clang/scripts/update.py
index c3d36eb0..7cc44f14 100755
--- a/tools/clang/scripts/update.py
+++ b/tools/clang/scripts/update.py
@@ -35,7 +35,7 @@
CLANG_REVISION = 'HEAD'
# This is incremented when pushing a new build of Clang at the same revision.
-CLANG_SUB_REVISION=1
+CLANG_SUB_REVISION=2
PACKAGE_VERSION = "%s-%s" % (CLANG_REVISION, CLANG_SUB_REVISION)
@@ -526,10 +526,12 @@
cxxflags = []
ldflags = []
+ targets = 'AArch64;ARM;Mips;PowerPC;SystemZ;WebAssembly;X86'
base_cmake_args = ['-GNinja',
'-DCMAKE_BUILD_TYPE=Release',
'-DLLVM_ENABLE_ASSERTIONS=ON',
'-DLLVM_ENABLE_TERMINFO=OFF',
+ '-DLLVM_TARGETS_TO_BUILD=' + targets,
# Statically link MSVCRT to avoid DLL dependencies.
'-DLLVM_USE_CRT_RELEASE=MT',
'-DCLANG_PLUGIN_SUPPORT=OFF',