Skip to content

Commit ffb1e94

Browse files
committed
Update Docker file
1 parent 7d610e6 commit ffb1e94

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

Dockerfile_archlinux

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# USAGE:
66
# ```bash
77
# wget https://raw.githubusercontent.com/banach-space/llvm-tutor/main/Dockerfile_archlinux
8-
# docker build -t=llvm-tutor:llvm-19 .
9-
# docker run --rm -it --hostname=llvm-tutor llvm-tutor:llvm-19 /bin/bash
8+
# docker build -t=llvm-tutor:llvm-20 .
9+
# docker run --rm -it --hostname=llvm-tutor llvm-tutor:llvm-20 /bin/bash
1010
# ```
1111
# =============================================================================
1212

Dockerfile_fedora

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# USAGE:
66
# ```bash
77
# wget https://raw.githubusercontent.com/banach-space/llvm-tutor/main/Dockerfile_fedora
8-
# docker build -t=llvm-tutor:llvm-19 .
9-
# docker run --rm -it --hostname=llvm-tutor llvm-tutor:llvm-19 /bin/bash
8+
# docker build -t=llvm-tutor:llvm-20 .
9+
# docker run --rm -it --hostname=llvm-tutor llvm-tutor:llvm-20 /bin/bash
1010
# ```
1111
# =============================================================================
1212

Dockerfile_ubuntu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# USAGE:
77
# ```bash
88
# wget https://raw.githubusercontent.com/banach-space/llvm-tutor/main/Dockerfile_ubuntu
9-
# docker build -t=llvm-tutor:llvm-19 .
10-
# docker run --rm -it --hostname=llvm-tutor llvm-tutor:llvm-19 /bin/bash
9+
# docker build -t=llvm-tutor:llvm-20 .
10+
# docker run --rm -it --hostname=llvm-tutor llvm-tutor:llvm-20 /bin/bash
1111
# ```
1212
# =============================================================================
1313

@@ -31,7 +31,7 @@ RUN pip3 install lit
3131
# reason, we need to add `-DLLVM_INSTALL_UTILS=ON` CMake flag when building
3232
# LLVM.
3333
ENV LLVM_DIR /opt/llvm
34-
RUN git clone --branch release/19.x --depth 1 https://github.com/llvm/llvm-project \
34+
RUN git clone --branch release/20.x --depth 1 https://github.com/llvm/llvm-project \
3535
&& mkdir -p $LLVM_DIR \
3636
&& mkdir -p llvm-project/build \
3737
&& cd llvm-project/build \

Dockerfile_ubuntu_apt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
# USAGE:
77
# ```bash
88
# wget https://raw.githubusercontent.com/banach-space/llvm-tutor/main/Dockerfile_ubuntu_apt
9-
# docker build -t=llvm-tutor:llvm-19 .
10-
# docker run --rm -it --hostname=llvm-tutor llvm-tutor:llvm-19 /bin/bash
9+
# docker build -t=llvm-tutor:llvm-20 .
10+
# docker run --rm -it --hostname=llvm-tutor llvm-tutor:llvm-20 /bin/bash
1111
# ```
1212
# =============================================================================
1313

1414
FROM ubuntu:22.04
1515

16-
ENV LLVM_DIR /usr/lib/llvm-19/
16+
ENV LLVM_DIR /usr/lib/llvm-20/
1717
ENV TUTOR_DIR /llvm-tutor
1818

1919
# 1. INSTALL DEPENDENCIES
@@ -35,9 +35,9 @@ RUN apt-get update && apt-get install -y \
3535
&& rm -rf /var/lib/apt/lists/*
3636

3737
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
38-
RUN apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-19 main"
38+
RUN apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-20 main"
3939
RUN apt-get update
40-
RUN apt-get install -y llvm-19 llvm-19-dev llvm-19-tools clang-19
40+
RUN apt-get install -y llvm-20 llvm-20-dev llvm-20-tools clang-20
4141
RUN apt-get install -y python3-setuptools
4242

4343
# 2. INSTALL LIT
@@ -51,8 +51,8 @@ RUN mkdir -p $TUTOR_DIR/hello-world-build \
5151
&& cd $TUTOR_DIR/hello-world-build \
5252
&& cmake -G Ninja -DLT_LLVM_INSTALL_DIR=$LLVM_DIR ../HelloWorld \
5353
&& ninja
54-
RUN cd $TUTOR_DIR/hello-world-build && /usr/bin/clang-19 -S -O1 -emit-llvm ../inputs/input_for_hello.c -o input_for_hello.ll
55-
RUN cd $TUTOR_DIR/hello-world-build && /usr/bin/opt-19 -load-pass-plugin ./libHelloWorld.so -passes=hello-world -disable-output input_for_hello.ll 2>&1 | grep "(llvm-tutor) Hello from: foo"
54+
RUN cd $TUTOR_DIR/hello-world-build && /usr/bin/clang-20 -S -O1 -emit-llvm ../inputs/input_for_hello.c -o input_for_hello.ll
55+
RUN cd $TUTOR_DIR/hello-world-build && /usr/bin/opt-20 -load-pass-plugin ./libHelloWorld.so -passes=hello-world -disable-output input_for_hello.ll 2>&1 | grep "(llvm-tutor) Hello from: foo"
5656

5757
# 5. BUILD AND RUN LLVM-TUTOR
5858
RUN mkdir -p $TUTOR_DIR/build \

0 commit comments

Comments
 (0)