update llvm
This commit is contained in:
@@ -21,21 +21,14 @@ RUN apt-get update && apt-get install -y \
|
||||
|
||||
ENV PATH="/root/.local/bin:${PATH}"
|
||||
|
||||
# Install LLVM 20 and symlink tools
|
||||
# Install LLVM 22 and symlink tools
|
||||
RUN wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh \
|
||||
&& chmod +x /tmp/llvm.sh \
|
||||
&& /tmp/llvm.sh 20 all \
|
||||
&& ln -sf /usr/bin/clang-20 /usr/bin/clang \
|
||||
&& ln -sf /usr/bin/clang++-20 /usr/bin/clang++ \
|
||||
&& ln -sf /usr/bin/llvm-profdata-20 /usr/bin/llvm-profdata \
|
||||
&& ln -sf /usr/bin/llvm-cov-20 /usr/bin/llvm-cov \
|
||||
&& ln -sf /usr/bin/clang-format-20 /usr/bin/clang-format \
|
||||
&& ln -sf /usr/bin/clang-tidy-20 /usr/bin/clang-tidy \
|
||||
&& ln -sf /usr/bin/run-clang-tidy-20 /usr/bin/run-clang-tidy \
|
||||
&& ln -sf /usr/bin/llvm-ar-20 /usr/bin/llvm-ar \
|
||||
&& ln -sf /usr/bin/llvm-nm-20 /usr/bin/llvm-nm \
|
||||
&& ln -sf /usr/bin/llvm-ranlib-20 /usr/bin/llvm-ranlib \
|
||||
&& rm -f /tmp/llvm.sh
|
||||
&& /tmp/llvm.sh 22 all \
|
||||
&& for f in /usr/lib/llvm-22/bin/*; do \
|
||||
ln -sf "$f" "/usr/local/bin/$(basename "$f")"; \
|
||||
done \
|
||||
&& rm -f /tmp/llvm.sh*
|
||||
|
||||
RUN VERSION=1.2.0; \
|
||||
curl -sSL "https://github.com/facebook/infer/releases/download/v$VERSION/infer-linux-x86_64-v$VERSION.tar.xz" \
|
||||
|
||||
Reference in New Issue
Block a user