Skip to content

Commit 4dc36ed

Browse files
committed
debian-build: install llvm from deb repos
1 parent 5f95db9 commit 4dc36ed

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

debian-build/Containerfile

+4-14
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ ENV DEBIAN_FRONTEND=noninteractive
1212
RUN set -eu; \
1313
apt-get update -q; \
1414
apt-get install -qy --no-install-recommends \
15+
clang-"${LLVM_VERSION}*" \
16+
lld-"${LLVM_VERSION}*" \
1517
bison \
1618
cmake \
1719
flex \
@@ -34,6 +36,8 @@ RUN set -eu; \
3436
quilt \
3537
; \
3638
rm -rf /var/lib/apt/lists/*; \
39+
update-alternatives --install /usr/local/bin/clang clang /usr/bin/clang-${LLVM_VERSION} 100 ; \
40+
update-alternatives --install /usr/local/bin/clang++ clang++ /usr/bin/clang++-${LLVM_VERSION} 100 ; \
3741
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen
3842
ENV LANG=en_US.UTF-8
3943
ENV EDITOR=vim.tiny
@@ -56,20 +60,6 @@ RUN set -eu; \
5660
| tar -xzf- --strip 1
5761
ENV PATH=/bitbake/bin:$PATH
5862

59-
## LLVM
60-
# https://apt.llvm.org/
61-
62-
RUN set -eu; \
63-
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key|tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc ; \
64-
echo "deb http://apt.llvm.org/${DEBIAN_VERSION}/ llvm-toolchain-${DEBIAN_VERSION}-${LLVM_VERSION} main" \
65-
> /etc/apt/sources.list.d/llvm.list ; \
66-
apt-get update -q && apt-get install -qy --no-install-recommends \
67-
clang-"${LLVM_VERSION}*" \
68-
lld-"${LLVM_VERSION}*" \
69-
; \
70-
update-alternatives --install /usr/local/bin/clang clang /usr/bin/clang-${LLVM_VERSION} 100 ; \
71-
update-alternatives --install /usr/local/bin/clang++ clang++ /usr/bin/clang++-${LLVM_VERSION} 100 ;
72-
7363
## UPX
7464
# https://upx.github.io/
7565

0 commit comments

Comments
 (0)