diff --git a/deploy.sh b/deploy.sh index 82bfe74..02a4a64 100755 --- a/deploy.sh +++ b/deploy.sh @@ -52,7 +52,7 @@ if [ ! -d "build" ]; then fi cd build -cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=20 +cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=23 make -j$(nproc) cd .. diff --git a/install-dependencies-ubuntu22.sh b/install-dependencies-ubuntu22.sh index 8b62936..63ae8b8 100644 --- a/install-dependencies-ubuntu22.sh +++ b/install-dependencies-ubuntu22.sh @@ -50,9 +50,27 @@ apt install -y \ wget \ software-properties-common -# Installiere Standard C++ Compiler (GCC 11) -log_info "Installiere GCC 11 (Standard für Ubuntu 22.04)..." -apt install -y gcc g++ +# Installiere GCC 15 für C++23 Support +log_info "Installiere GCC 15 für C++23 Support..." +apt install -y software-properties-common + +# Füge Ubuntu Toolchain PPA hinzu +add-apt-repository -y ppa:ubuntu-toolchain-r/test +apt update + +# Installiere GCC 15 +if apt install -y gcc-15 g++-15; then + log_success "GCC 15 erfolgreich installiert" + + # Setze GCC 15 als Standard + update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-15 100 + update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-15 100 + + log_info "GCC 15 ist jetzt der Standard-Compiler" +else + log_warning "GCC 15 nicht verfügbar, verwende GCC 11" + apt install -y gcc g++ +fi # Prüfe Compiler-Versionen log_info "Verfügbare Compiler-Versionen:" diff --git a/install-gcc15-ubuntu22.sh b/install-gcc15-ubuntu22.sh old mode 100644 new mode 100755