From 06c399c47222b525398ab0f54ac6ceddd30f4178 Mon Sep 17 00:00:00 2001 From: luocai Date: Wed, 20 Nov 2024 18:04:14 +0800 Subject: [PATCH] support c++20 for ubuntu2204. --- Dockerfiles/ubuntu2204.dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfiles/ubuntu2204.dockerfile b/Dockerfiles/ubuntu2204.dockerfile index 7183195..eca300f 100644 --- a/Dockerfiles/ubuntu2204.dockerfile +++ b/Dockerfiles/ubuntu2204.dockerfile @@ -54,6 +54,10 @@ RUN cd /root \ && apt install -y software-properties-common \ && add-apt-repository -y ppa:ubuntu-toolchain-r/test \ && apt install -y gcc-13 g++-13 gdb \ + && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 60 \ + && update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 60 \ + && update-alternatives --config gcc \ + && update-alternatives --config g++ \ && apt clean \ && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*