@@ -18,12 +18,12 @@ RUN apt-get update && \
18
18
# add repos for llvm and newer gcc and install docker
19
19
RUN apt-get update && apt-get install --no-install-recommends -y \
20
20
build-essential \
21
- gcc-9 \
22
- g++-9 \
23
- llvm-9 -dev \
24
- clang-9 \
25
- clang-tidy-9 \
26
- clang-format-9 \
21
+ gcc-12 \
22
+ g++-12 \
23
+ llvm-14 -dev \
24
+ clang-14 \
25
+ clang-tidy-14 \
26
+ clang-format-14 \
27
27
make \
28
28
git \
29
29
ccache \
@@ -47,18 +47,18 @@ RUN set -e; \
47
47
rm -rf /tmp/sonar*
48
48
49
49
# set env
50
- ENV LLVM_ROOT=/usr/lib/llvm-9
51
- ENV LLVM_DIR=/usr/lib/llvm-9 /lib/cmake/llvm/
50
+ ENV LLVM_ROOT=/usr/lib/llvm-14
51
+ ENV LLVM_DIR=/usr/lib/llvm-14 /lib/cmake/llvm/
52
52
ENV PATH=${LLVM_ROOT}/bin:${LLVM_ROOT}/share/clang:${PATH}
53
- ENV CC=gcc-9
54
- ENV CXX=g++-9
53
+ ENV CC=gcc-12
54
+ ENV CXX=g++-12
55
55
56
56
# set default compilers and tools
57
- RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 90 && \
58
- update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-9 90 && \
59
- update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-9 90 && \
60
- update-alternatives --install /usr/bin/clang clang /usr/lib/llvm-9 /bin/clang-9 90 && \
61
- update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-9 90 && \
62
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 && \
63
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 90 && \
64
- update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-9 90
57
+ RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 90 && \
58
+ update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-14 90 && \
59
+ update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-14 90 && \
60
+ update-alternatives --install /usr/bin/clang clang /usr/lib/llvm-14 /bin/clang-14 90 && \
61
+ update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-14 90 && \
62
+ update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 90 && \
63
+ update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 90 && \
64
+ update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-12 90
0 commit comments