From 2e6861283082dac1811014056e33c017ce274606 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 7 Feb 2022 23:33:57 +0800 Subject: [PATCH] ci: pin llvm clang versions --- debian.Dockerfile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/debian.Dockerfile b/debian.Dockerfile index c76a60c3..3a2583e0 100644 --- a/debian.Dockerfile +++ b/debian.Dockerfile @@ -9,14 +9,14 @@ ENV RUSTUP_HOME=/usr/local/rustup \ CXX=clang++ RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \ - echo "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch main" >> /etc/apt/sources.list && \ - echo "deb-src http://apt.llvm.org/stretch/ llvm-toolchain-stretch main" >> /etc/apt/sources.list && \ + echo "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-13 main" >> /etc/apt/sources.list && \ + echo "deb-src http://apt.llvm.org/stretch/ llvm-toolchain-stretch-13 main" >> /etc/apt/sources.list && \ apt-get update && \ apt-get install -y --fix-missing --no-install-recommends \ curl \ - llvm \ - clang \ - lld \ + llvm-13 \ + clang-13 \ + lld-13 \ libc++-13-dev \ libc++abi-13-dev \ xz-utils \ @@ -33,7 +33,10 @@ RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \ rustup target add aarch64-unknown-linux-gnu && \ rustup target add armv7-unknown-linux-gnueabihf && \ npm install -g pnpm lerna && \ - ln -sf /usr/bin/clang /usr/bin/cc + ln -sf /usr/bin/clang-13 /usr/bin/clang && \ + ln -sf /usr/bin/clang++-13 /usr/bin/clang++ && \ + ln -sf /usr/bin/lld-13 /usr/bin/lld && \ + ln -sf /usr/bin/clang-13 /usr/bin/cc RUN wget https://www.nasm.us/pub/nasm/releasebuilds/${NASM_VERSION}/nasm-${NASM_VERSION}.tar.xz && \ tar -xf nasm-${NASM_VERSION}.tar.xz && \