From 99f99ca7ab34f2c3514291d3565d767d57e04081 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 20 Oct 2020 20:04:53 +0200 Subject: [PATCH] Make users of `download-ci-llvm` download a new version --- src/bootstrap/bootstrap.py | 4 +++- src/bootstrap/download-ci-llvm-stamp | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/bootstrap/download-ci-llvm-stamp diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index ce37adeb28c..7d3b4b13503 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -435,7 +435,9 @@ class RustBuild(object): llvm_sha = subprocess.check_output([ "git", "log", "--author=bors", "--format=%H", "-n1", "-m", "--first-parent", - "--", "src/llvm-project" + "--", + "src/llvm-project", + "src/bootstrap/download-ci-llvm-stamp", ]).decode(sys.getdefaultencoding()).strip() llvm_assertions = self.get_toml('assertions', 'llvm') == 'true' if self.program_out_of_date(self.llvm_stamp(), llvm_sha + str(llvm_assertions)): diff --git a/src/bootstrap/download-ci-llvm-stamp b/src/bootstrap/download-ci-llvm-stamp new file mode 100644 index 00000000000..d857618eefa --- /dev/null +++ b/src/bootstrap/download-ci-llvm-stamp @@ -0,0 +1,4 @@ +Change this file to make users of the `download-ci-llvm` configuration download +a new version of LLVM from CI, even if the LLVM submodule hasn’t changed. + +Last change is for: https://github.com/rust-lang/rust/pull/78131