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}"
|
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 \
|
RUN wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh \
|
||||||
&& chmod +x /tmp/llvm.sh \
|
&& chmod +x /tmp/llvm.sh \
|
||||||
&& /tmp/llvm.sh 20 all \
|
&& /tmp/llvm.sh 22 all \
|
||||||
&& ln -sf /usr/bin/clang-20 /usr/bin/clang \
|
&& for f in /usr/lib/llvm-22/bin/*; do \
|
||||||
&& ln -sf /usr/bin/clang++-20 /usr/bin/clang++ \
|
ln -sf "$f" "/usr/local/bin/$(basename "$f")"; \
|
||||||
&& ln -sf /usr/bin/llvm-profdata-20 /usr/bin/llvm-profdata \
|
done \
|
||||||
&& ln -sf /usr/bin/llvm-cov-20 /usr/bin/llvm-cov \
|
&& rm -f /tmp/llvm.sh*
|
||||||
&& 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
|
|
||||||
|
|
||||||
RUN VERSION=1.2.0; \
|
RUN VERSION=1.2.0; \
|
||||||
curl -sSL "https://github.com/facebook/infer/releases/download/v$VERSION/infer-linux-x86_64-v$VERSION.tar.xz" \
|
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