Aktualisiere das Build-Skript in deploy.sh, um den C++ Standard auf Version 23 zu setzen. Ändere die Installation des C++ Compilers in install-dependencies-ubuntu22.sh, um GCC 15 zu installieren und als Standard-Compiler festzulegen. Entferne die vorherige Installation von GCC 11.
This commit is contained in:
committed by
Torsten (PC)
parent
4b9311713a
commit
1b38e2412c
@@ -52,7 +52,7 @@ if [ ! -d "build" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
cd build
|
cd build
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=20
|
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=23
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
|||||||
@@ -50,9 +50,27 @@ apt install -y \
|
|||||||
wget \
|
wget \
|
||||||
software-properties-common
|
software-properties-common
|
||||||
|
|
||||||
# Installiere Standard C++ Compiler (GCC 11)
|
# Installiere GCC 15 für C++23 Support
|
||||||
log_info "Installiere GCC 11 (Standard für Ubuntu 22.04)..."
|
log_info "Installiere GCC 15 für C++23 Support..."
|
||||||
apt install -y gcc g++
|
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
|
# Prüfe Compiler-Versionen
|
||||||
log_info "Verfügbare Compiler-Versionen:"
|
log_info "Verfügbare Compiler-Versionen:"
|
||||||
|
|||||||
0
install-gcc15-ubuntu22.sh
Normal file → Executable file
0
install-gcc15-ubuntu22.sh
Normal file → Executable file
Reference in New Issue
Block a user