This repository has been archived by the owner on Jul 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
FROM debian:stable-slim | ||
ARG LLVM_VERSION=18 | ||
ARG LLVM_VERSION=14 | ||
ENV LLVM_VERSION=${LLVM_VERSION} | ||
ARG TZ=Etc/GMT-8 | ||
ENV TZ=${TZ} | ||
RUN set -eux; \ | ||
apt-get update; \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes \ | ||
curl ca-certificates gpg xz-utils make flex bison libssl-dev libelf-dev bc python3-minimal dwarves tzdata cpio; \ | ||
curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key | \ | ||
gpg --dearmor -o /usr/share/keyrings/llvm-apt-archive-keyring.gpg; \ | ||
. /etc/os-release; \ | ||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/llvm-apt-archive-keyring.gpg] \ | ||
https://apt.llvm.org/$VERSION_CODENAME llvm-toolchain-$VERSION_CODENAME-$LLVM_VERSION main" | \ | ||
tee /etc/apt/sources.list.d/llvm-apt.list >/dev/null; \ | ||
apt-get update; \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes \ | ||
clang-$LLVM_VERSION lld-$LLVM_VERSION llvm-$LLVM_VERSION; \ | ||
curl ca-certificates gpg xz-utils make flex bison libssl-dev libelf-dev bc python3-minimal dwarves tzdata cpio clang-${LLVM_VERSION} lld-${LLVM_VERSION} llvm-${LLVM_VERSION}; \ | ||
# curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key | \ | ||
# gpg --dearmor -o /usr/share/keyrings/llvm-apt-archive-keyring.gpg; \ | ||
# . /etc/os-release; \ | ||
# echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/llvm-apt-archive-keyring.gpg] \ | ||
# https://apt.llvm.org/$VERSION_CODENAME llvm-toolchain-$VERSION_CODENAME-$LLVM_VERSION main" | \ | ||
# tee /etc/apt/sources.list.d/llvm-apt.list >/dev/null; \ | ||
# apt-get update; \ | ||
# DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes \ | ||
# clang-$LLVM_VERSION lld-$LLVM_VERSION llvm-$LLVM_VERSION; \ | ||
update-alternatives --install /usr/bin/cc cc /usr/bin/clang-$LLVM_VERSION 100; \ | ||
rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters