From bd4d5413a6a139c470d17ebd95a0047ce7bbafe9 Mon Sep 17 00:00:00 2001 From: Jonathan Keane Date: Sun, 8 Dec 2024 22:13:07 -0600 Subject: [PATCH] try snapshot --- ci/docker/ubuntu-24.04-cpp.dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ci/docker/ubuntu-24.04-cpp.dockerfile b/ci/docker/ubuntu-24.04-cpp.dockerfile index f662edc5365bc..339f3004e0cab 100644 --- a/ci/docker/ubuntu-24.04-cpp.dockerfile +++ b/ci/docker/ubuntu-24.04-cpp.dockerfile @@ -141,9 +141,15 @@ RUN if [ "${gcc_version}" = "" ]; then \ add-apt-repository ppa:ubuntu-toolchain-r/volatile; \ fi; \ apt-get update -y -q && \ - apt-get install -y -q --no-install-recommends \ + if [ "${gcc_version}" -gt "14" ]; then \ + apt-get install -y -q --no-install-recommends \ + g++-snapshot \ + gcc-snapshot; \ + else \ + apt-get install -y -q --no-install-recommends \ g++-${gcc_version} \ - gcc-${gcc_version} && \ + gcc-${gcc_version}; \ + fi; \ update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${gcc_version} 100 && \ update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${gcc_version} 100 && \ update-alternatives --install \