Aktualisiere die Compiler-Version in CMakeLists.txt und install-dependencies-ubuntu22.sh von GCC 15 auf GCC 13 für bessere Unterstützung von C++23. Passe die Installationsmeldungen und Standard-Compiler-Einstellungen entsprechend an.
This commit is contained in:
committed by
Torsten (PC)
parent
b1f9073f4d
commit
c2a54e29f8
@@ -50,16 +50,24 @@ apt install -y \
|
||||
wget \
|
||||
software-properties-common
|
||||
|
||||
# Installiere GCC 15 für C++23 Support
|
||||
log_info "Installiere GCC 15 für C++23 Support..."
|
||||
# Installiere GCC 13 für C++23 Support
|
||||
log_info "Installiere GCC 13 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
|
||||
# Installiere GCC 13 (bessere C++23 Unterstützung als GCC 11)
|
||||
if apt install -y gcc-13 g++-13; then
|
||||
log_success "GCC 13 erfolgreich installiert"
|
||||
|
||||
# Setze GCC 13 als Standard
|
||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 100
|
||||
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 100
|
||||
|
||||
log_info "GCC 13 ist jetzt der Standard-Compiler"
|
||||
elif apt install -y gcc-15 g++-15; then
|
||||
log_success "GCC 15 erfolgreich installiert"
|
||||
|
||||
# Setze GCC 15 als Standard
|
||||
@@ -68,7 +76,7 @@ if apt install -y gcc-15 g++-15; then
|
||||
|
||||
log_info "GCC 15 ist jetzt der Standard-Compiler"
|
||||
else
|
||||
log_warning "GCC 15 nicht verfügbar, verwende GCC 11"
|
||||
log_warning "GCC 13/15 nicht verfügbar, verwende GCC 11"
|
||||
apt install -y gcc g++
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user