Skip to content

Commit 648d99e

Browse files
committed
[libc++] Install clang-tools in the CI container
This is required for using clang-query in the CI Reviewed By: Mordante, #libc Spies: libcxx-commits, arichardson Differential Revision: https://reviews.llvm.org/D130845
1 parent 2138c90 commit 648d99e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

libcxx/utils/ci/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,18 @@ RUN ln -fs /usr/bin/clang++-$LLVM_LATEST_VERSION /usr/bin/c++ && [ -e $(readlink
7272
RUN ln -fs /usr/bin/clang-$LLVM_LATEST_VERSION /usr/bin/cc && [ -e $(readlink /usr/bin/cc) ]
7373

7474
# Install clang-format
75-
RUN apt-get install -y clang-format-$LLVM_LATEST_VERSION
75+
RUN apt-get update && apt-get install -y clang-format-$LLVM_LATEST_VERSION
7676
RUN ln -s /usr/bin/clang-format-$LLVM_LATEST_VERSION /usr/bin/clang-format && [ -e $(readlink /usr/bin/clang-format) ]
7777
RUN ln -s /usr/bin/git-clang-format-$LLVM_LATEST_VERSION /usr/bin/git-clang-format && [ -e $(readlink /usr/bin/git-clang-format) ]
7878

7979
# Install clang-tidy
80-
RUN apt-get install -y clang-tidy-$LLVM_LATEST_VERSION
80+
RUN apt-get update && apt-get install -y clang-tidy-$LLVM_LATEST_VERSION
8181
RUN ln -s /usr/bin/clang-tidy-$LLVM_LATEST_VERSION /usr/bin/clang-tidy && [ -e $(readlink /usr/bin/clang-tidy) ]
8282

83+
# Install clang-tools
84+
RUN apt-get update && apt-get install -y clang-tools-$LLVM_LATEST_VERSION
85+
RUN ln -s /usr/bin/clang-query-$LLVM_LATEST_VERSION /usr/bin/clang-query && [ -e $(readlink /usr/bin/clang-query) ]
86+
8387
# Install the most recent GCC, like clang install the previous version as a transition.
8488
ENV GCC_LATEST_VERSION=12
8589
RUN apt-get update && apt install -y gcc-$((GCC_LATEST_VERSION - 1)) g++-$((GCC_LATEST_VERSION - 1))

0 commit comments

Comments
 (0)