Skip to content

Commit

Permalink
build: set Clang version to stable (#169)
Browse files Browse the repository at this point in the history
Currently set to version 18
  • Loading branch information
vishwa2710 authored Feb 19, 2025
1 parent 0dcb251 commit 677f1e9
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions docker/development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,15 @@ RUN apt-get update -y \

## Clang-format

RUN wget https://apt.llvm.org/llvm-snapshot.gpg.key \
&& apt-key add llvm-snapshot.gpg.key \
&& rm llvm-snapshot.gpg.key \
&& add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal main' \
&& apt-get update \
&& apt-get install -y clang-format clang \
&& rm -rf /var/lib/apt/lists/*
ARG CLANG_FORMAT_VERSION="18"

RUN mkdir -p /tmp/clang-format \
&& cd /tmp/clang-format \
&& wget https://apt.llvm.org/llvm.sh \
&& chmod +x llvm.sh \
&& ./llvm.sh ${CLANG_FORMAT_VERSION} all \
&& rm -rf /tmp/clang-format \
&& ln -s /usr/bin/clang-format-${CLANG_FORMAT_VERSION} /usr/bin/clang-format

## GCC / G++

Expand Down

0 comments on commit 677f1e9

Please sign in to comment.