From 1e94adb19057476917ef4594d8936b790869fe19 Mon Sep 17 00:00:00 2001 From: ViniciusCruzMoura Date: Sat, 4 Apr 2026 16:15:35 -0400 Subject: [PATCH] Dockerfile: upgrade GCC to 15 replace gcc-14/g++-14 with gcc-15/g++-15 and change update-alternatives to make gcc 15 the default, this fixes compiler errors caused by use of c++23 (flat_map) which require gcc 15+ Signed-off-by: ViniciusCruzMoura --- .devcontainer/Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index bb631ce86..28db1de8f 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -2,29 +2,25 @@ FROM mcr.microsoft.com/devcontainers/cpp:1-ubuntu-24.04 ENV DEBIAN_FRONTEND=noninteractive -# Dependencies RUN apt-get update \ && apt-get install -y software-properties-common \ && add-apt-repository -y ppa:ubuntu-toolchain-r/test \ && apt-get update \ && apt-get install -y \ build-essential \ - gcc-14 g++-14 \ + gcc-15 g++-15 \ python3 \ ninja-build \ libsdl2-dev \ libgl-dev \ libglu1-mesa-dev \ libpthread-stubs0-dev \ - # Set GCC 14 as the default compiler - && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 100 \ - && update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 100 \ - # Clean up lol + && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-15 100 \ + && update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-15 100 \ && apt-get autoremove -y \ && apt-get clean -y \ && rm -rf /var/lib/apt/lists/* -# Use the latest version of Meson -> $(curl -s "https://api.github.com/repos/mesonbuild/meson/releases/latest" | grep -Po '"tag_name": "\K[0-9.]+') RUN MESON_VERSION=1.10.2 \ && wget -qO meson.tar.gz https://github.com/mesonbuild/meson/releases/latest/download/meson-${MESON_VERSION}.tar.gz \ && mkdir /opt/meson \