Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upgrade to llvm 18 #1375

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions chunks/lang-c/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,23 @@ ENV TRIGGER_REBUILD=1

RUN curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/llvm-archive-keyring.gpg \
&& echo "deb [signed-by=/usr/share/keyrings/llvm-archive-keyring.gpg] http://apt.llvm.org/jammy/ \
llvm-toolchain-jammy-17 main" | sudo tee /etc/apt/sources.list.d/llvm.list > /dev/null \
llvm-toolchain-jammy-18 main" | sudo tee /etc/apt/sources.list.d/llvm.list > /dev/null \
&& apt update \
&& install-packages \
clang-17 \
clangd-17 \
clang-format-17 \
clang-tidy-17 \
clang-18 \
clangd-18 \
clang-format-18 \
clang-tidy-18 \
gdb \
lld-17
lld-18 \
libclang-18-dev \
clang-tools-18

RUN sudo update-alternatives --install /usr/bin/clang clang /usr/lib/llvm-17/bin/clang 100 \
&& sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/lib/llvm-17/bin/clang++ 100 \
&& sudo update-alternatives --install /usr/bin/clangd clangd /usr/bin/clangd-17 100 \
&& sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-17 100 \
&& sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-17 100 \
&& sudo update-alternatives --install /usr/bin/lld lld /usr/bin/lld-17 100
RUN sudo update-alternatives --install /usr/bin/clang clang /usr/lib/llvm-18/bin/clang 100 \
&& sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/lib/llvm-18/bin/clang++ 100 \
&& sudo update-alternatives --install /usr/bin/clangd clangd /usr/bin/clangd-18 100 \
&& sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-18 100 \
&& sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-18 100 \
&& sudo update-alternatives --install /usr/bin/lld lld /usr/bin/lld-18 100

USER gitpod
Loading