Skip to content

Commit

Permalink
[buildbot-cfg][clangd] Bump toolchain to llvm-18
Browse files Browse the repository at this point in the history
We were hitting tsan failures, see
https://lab.llvm.org/buildbot/#/builders/131/builds/63556. Looks like
these are due to google/sanitizers#1716 and
bumping toolchain to llvm-18 fixes the issue.
  • Loading branch information
kadircet committed May 7, 2024
1 parent 7c7cdfb commit 6d47981
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ RUN apt-get update && \
# install latest LLVM release
RUN wget https://apt.llvm.org/llvm.sh && \
chmod +x llvm.sh && \
./llvm.sh 11 && \
./llvm.sh 18 && \
rm -rf llvm.sh && \
# clean apt cache to reduce image size
apt-get clean
Expand All @@ -49,9 +49,9 @@ RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/nul
# buildbot-worker. We deliberately do this after installing all the system
# packages, as apt-get install breaks if we change the Python from default to
# python3.8.
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-11 100 ;\
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-11 100 ;\
update-alternatives --install /usr/bin/ld.lld ld.lld /usr/bin/lld-11 100 ;\
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 100 ;\
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 100 ;\
update-alternatives --install /usr/bin/ld.lld ld.lld /usr/bin/lld-18 100 ;\
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 100
# Configure LLVM tools.
ENV CC=clang
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10
11
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
- env:
- name: BUILDBOT_PORT
value: "9990" # 9990 is production, 9994 is staging.
image: gcr.io/sanitizer-bots/buildbot-clangd-ubuntu-clang:10
image: gcr.io/sanitizer-bots/buildbot-clangd-ubuntu-clang:11
name: buildbot-clangd-ubuntu-clang
resources:
limits:
Expand Down

0 comments on commit 6d47981

Please sign in to comment.