File tree 2 files changed +9
-1
lines changed 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ cmake -DCMAKE_INSTALL_PREFIX=${INST_DIR} \
15
15
-DLLVM_ENABLE_PROJECTS=" lld;clang" \
16
16
-DCLANG_DEFAULT_PIE_ON_LINUX=OFF \
17
17
-DBUILD_SHARED_LIBS=ON \
18
+ -DCMAKE_C_COMPILER=/usr/bin/clang \
19
+ -DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
18
20
-GNinja \
19
21
../llvm
20
22
cmake --build .
Original file line number Diff line number Diff line change @@ -2,9 +2,15 @@ FROM debian:bullseye
2
2
ARG CI_UID
3
3
RUN useradd -m -u ${CI_UID} ci
4
4
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 \
6
6
ninja-build
7
7
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++
8
14
RUN chown ${CI_UID}:${CI_UID} .
9
15
COPY --chown=${CI_UID}:${CI_UID} . .
10
16
CMD sh -x .buildbot.sh
You can’t perform that action at this time.
0 commit comments