File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 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} \
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
2022cmake --build .
Original file line number Diff line number Diff line change @@ -2,9 +2,15 @@ FROM debian:bullseye
22ARG CI_UID
33RUN useradd -m -u ${CI_UID} ci
44RUN 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
77WORKDIR /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++
814RUN chown ${CI_UID}:${CI_UID} .
915COPY --chown=${CI_UID}:${CI_UID} . .
1016CMD sh -x .buildbot.sh
You can’t perform that action at this time.
0 commit comments