Skip to content

Commit 4db5152

Browse files
bors[bot]vext01
andauthored
69: Use clang 13 in CI. r=ltratt a=vext01 Co-authored-by: Edd Barrett <[email protected]>
2 parents eb33453 + 71a7514 commit 4db5152

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.buildbot.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ cmake -DCMAKE_INSTALL_PREFIX=${INST_DIR} \
1515
-DLLVM_ENABLE_PROJECTS="lld;clang" \
1616
-DCLANG_DEFAULT_PIE_ON_LINUX=OFF \
1717
-DBUILD_SHARED_LIBS=ON \
18+
-DCMAKE_C_COMPILER=/usr/bin/clang \
19+
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
1820
-GNinja \
1921
../llvm
2022
cmake --build .

.buildbot_dockerfile_debian

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ FROM debian:bullseye
22
ARG CI_UID
33
RUN useradd -m -u ${CI_UID} ci
44
RUN apt-get update && \
5-
apt-get -y install build-essential curl cmake python3-distutils git \
5+
apt-get -y install clang-13 make curl cmake python3-distutils git \
66
ninja-build
77
WORKDIR /ci
8+
RUN update-alternatives --install /usr/bin/cc cc /usr/bin/clang-13 999
9+
RUN update-alternatives --set cc /usr/bin/clang-13
10+
RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-13 999
11+
RUN update-alternatives --set c++ /usr/bin/clang++-13
12+
RUN ln -sf /usr/bin/clang-13 /usr/bin/clang
13+
RUN ln -sf /usr/bin/clang++-13 /usr/bin/clang++
814
RUN chown ${CI_UID}:${CI_UID} .
915
COPY --chown=${CI_UID}:${CI_UID} . .
1016
CMD sh -x .buildbot.sh

0 commit comments

Comments
 (0)