Skip to content

Commit fafe07b

Browse files
committed
update-alternatives for g++ and gcc
1 parent 562fead commit fafe07b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ RUN apt-get update \
103103
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
104104

105105
RUN update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-12 100 && \
106-
update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-12 100
106+
update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-12 100 && \
107+
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100 && \
108+
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 100
107109

108110
# Install LLVM 20 (for clang-format) and latest git (custom, newer versions)
109111
RUN echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-20 main" > /etc/apt/sources.list.d/llvm20.list \

0 commit comments

Comments
 (0)