[sanitizers] Pin stage1 clang to trunk commit while release is < 24 (#981)
Clang 23 compiler-rt reports false LSan leaks in ExecutionEngine tests
(https://github.com/llvm/llvm-project/issues/186534). Use commit
d283ad857cbfc1d890c1fdc0a829574a84aabe75 for stage1 clang until LLVM 24
is released.
diff --git a/zorg/buildbot/builders/sanitizers/buildbot_functions.sh b/zorg/buildbot/builders/sanitizers/buildbot_functions.sh
index 88e4976..cb80bf0 100755
--- a/zorg/buildbot/builders/sanitizers/buildbot_functions.sh
+++ b/zorg/buildbot/builders/sanitizers/buildbot_functions.sh
@@ -243,8 +243,8 @@
function build_clang_at_release_tag {
common_stage1_variables
- local host_clang_revision
- host_clang_revision=llvmorg-$(
+ local clang_version
+ clang_version=$(
git ls-remote --tags https://github.com/llvm/llvm-project.git | \
grep -oE "refs/tags/llvmorg-[0-9.]+$" | \
grep -Eo "[0-9.]+" | \
@@ -252,6 +252,13 @@
tail -n1
)
+ local host_clang_revision
+ if (( ${clang_version%%.*} < 24 )); then
+ host_clang_revision=d283ad857cbfc1d890c1fdc0a829574a84aabe75
+ else
+ host_clang_revision=llvmorg-${clang_version}
+ fi
+
if [ -r "${STAGE1_DIR}/host_clang_revision" ] && \
[ "$(cat "${STAGE1_DIR}/host_clang_revision")" == "$host_clang_revision" ]
then