From 8f235bd996508f959b711a6a627bcca4211b0ab6 Mon Sep 17 00:00:00 2001 From: Jonathan Keane Date: Tue, 10 Dec 2024 14:06:37 -0600 Subject: [PATCH] this? --- ci/docker/ubuntu-24.04-cpp.dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ci/docker/ubuntu-24.04-cpp.dockerfile b/ci/docker/ubuntu-24.04-cpp.dockerfile index f662edc5365bc..dfa325dd23540 100644 --- a/ci/docker/ubuntu-24.04-cpp.dockerfile +++ b/ci/docker/ubuntu-24.04-cpp.dockerfile @@ -141,9 +141,14 @@ 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}" -eq "snapshot" ]; then \ + apt-get install -y -q --no-install-recommends \ + gcc-${gcc_version} \ + 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 \