Skip to content

Commit aa28237

Browse files
committed
Install lit in linux/Dockerfile
1 parent aea39d2 commit aa28237

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

linux/Dockerfile

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,20 @@ ENV DEBIAN_FRONTEND=noninteractive
1717

1818
RUN apt-get update \
1919
&& apt-get upgrade -y \
20-
&& apt-get install \
20+
&& apt-get install -y \
2121
apt-utils \
2222
git \
2323
wget gnupg curl \
2424
build-essential \
2525
libz-dev \
26-
gcc-aarch64-linux-gnu g++-aarch64-linux-gnu \
27-
-y
26+
gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
27+
2828
# dpkg --add-architecture arm64 \
2929

3030
# # Setup llvm sources
3131
# RUN echo "deb http://apt.llvm.org/$LLVM_DEBIAN_VERSION/ llvm-toolchain-$LLVM_DEBIAN_VERSION-$LLVM_VER main" >> /etc/apt/sources.list.d/llvm.list
3232
# RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
3333

34-
# RUN apt-get update
3534
#Install Clang dependencies
3635
#On bookworm clang is version 14, which is what we have as default.
3736
#Installing without versions here is convinient for scripts calling clang or lld instead of clang-14/lld-14
@@ -40,6 +39,15 @@ RUN apt-get install -y zip clang lldb lld clangd \
4039
clangd-$LLVM_VER liblld-$LLVM_VER-dev \
4140
llvm-$LLVM_VER-dev libpolly-$LLVM_VER-dev
4241

42+
# Install llvm-lit, which we use for correctness tests
43+
RUN apt-get install -y python3-venv
44+
RUN python3 -m venv /opt/venv
45+
RUN /opt/venv/bin/python -m pip install --upgrade pip
46+
RUN /opt/venv/bin/python -m pip install pipx
47+
RUN /opt/venv/bin/pipx install lit
48+
RUN /opt/venv/bin/pipx ensurepath
49+
RUN /opt/venv/bin/pipx ensurepath --global
50+
4351
ENV CARGO_HOME=/usr/local/cargo
4452
ENV RUSTUP_HOME=/usr/local/rustup
4553
# Get Rust

0 commit comments

Comments
 (0)