aboutsummaryrefslogtreecommitdiff
path: root/llvm_tools
diff options
context:
space:
mode:
authorChristopher Di Bella <cjdb@google.com>2021-07-09 22:30:20 +0000
committerCommit Bot <commit-bot@chromium.org>2021-07-14 18:33:02 +0000
commita5725194cabd4244fd04c106c3a8d8b0d246b751 (patch)
tree9176b92d40e204086413927a916dfe0debf5cd87 /llvm_tools
parentbd4f0cee99022b12b382f288624bc4902dcfe1b6 (diff)
downloadtoolchain-utils-a5725194cabd4244fd04c106c3a8d8b0d246b751.tar.gz
[llvm_tools] automatically uprevs sys-devel/gcc whenever LLVM_NEXT is changed
BUG=b:192996912 TEST=update_chromeos_llvm_hash_unittest.py verified via CQ Change-Id: Id06f054fdc4400c9b9af48c5383172192cb9a8a3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/3021576 Tested-by: Christopher Di Bella <cjdb@google.com> Auto-Submit: Christopher Di Bella <cjdb@google.com> Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Christopher Di Bella <cjdb@google.com>
Diffstat (limited to 'llvm_tools')
-rwxr-xr-xllvm_tools/update_chromeos_llvm_hash.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm_tools/update_chromeos_llvm_hash.py b/llvm_tools/update_chromeos_llvm_hash.py
index afc63f3c..c54087bb 100755
--- a/llvm_tools/update_chromeos_llvm_hash.py
+++ b/llvm_tools/update_chromeos_llvm_hash.py
@@ -483,6 +483,11 @@ def UpdatePackages(packages, llvm_variant, git_hash, svn_version, chroot_path,
# Determines whether to print the result of each executed command.
llvm_patch_management.verbose = verbose
+ # Unconditionally update sys-devel/gcc
+ sys_devel_gcc = 'sys-devel/gcc'
+ if sys_devel_gcc not in packages:
+ packages.append(sys_devel_gcc)
+
# Construct a dictionary where the key is the absolute path of the symlink to
# the package and the value is the absolute path to the ebuild of the package.
paths_dict = CreatePathDictionaryFromPackages(chroot_path, packages)