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
1414FROM ubuntu:22.04
1515
16- ENV LLVM_DIR /usr/lib/llvm-19 /
16+ ENV LLVM_DIR /usr/lib/llvm-20 /
1717ENV 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
3737RUN 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"
3939RUN 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
4141RUN 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
5858RUN mkdir -p $TUTOR_DIR/build \
0 commit comments