From 340b99e49182a4a05614a6810093a1025b0e578c Mon Sep 17 00:00:00 2001 From: Lennart <18233294+lennart-k@users.noreply.github.com> Date: Thu, 26 Jun 2025 22:25:04 +0200 Subject: [PATCH] Dockerfile: Fix llvm dependency for arm64 builds --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0daa22a..4a51635 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ ARG BUILDPLATFORM # the compiler will otherwise ask for aarch64-linux-musl-gcc ENV CC_aarch64_unknown_linux_musl="clang" -ENV AR_aarch64_unknown_linux_musl="llvm-ar" +ENV AR_aarch64_unknown_linux_musl="llvm20-ar" ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS="-Clink-self-contained=yes -Clinker=rust-lld" # Stupid workaound with tempfiles since environment variables @@ -16,7 +16,7 @@ RUN case $TARGETPLATFORM in \ *) echo "Unsupported platform ${TARGETPLATFORM}"; exit 1;; \ esac -RUN apk add --no-cache musl-dev llvm19 clang perl pkgconf make \ +RUN apk add --no-cache musl-dev llvm20 clang perl pkgconf make \ && rustup target add "$(cat /tmp/rust_target)" \ && cargo install cargo-chef --locked \ && rm -rf "$CARGO_HOME/registry"