feat: add GCC 13 configuration for Pop!_OS in .bashrc

This commit is contained in:
Menno van Leeuwen 2025-05-20 20:20:34 +02:00
parent f4ea1957a1
commit 8189d9ad4e
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

16
.bashrc
View File

@ -9,6 +9,22 @@ if [ "$(hostname)" = "mennos-desktop" ]; then
export MESA_VK_DEVICE_SELECT=1002:744c
fi
if [ -f /etc/os-release ]; then
distro=$(awk -F= '/^NAME/{print $ssss2}' /etc/os-release | tr -d '"')
if [[ "$distro" == *"Pop!_OS"* ]]; then
# Set GCC 13 as default compiler
export CC=/usr/bin/gcc-13
export CXX=/usr/bin/g++-13
# Point to GCC 13 headers (fixed path)
export CPLUS_INCLUDE_PATH="/usr/include/c++/13:/usr/include/x86_64-linux-gnu/c++/13"
# Add library paths (recommended)
export LIBRARY_PATH="/usr/lib/gcc/x86_64-linux-gnu/13:$LIBRARY_PATH"
export LD_LIBRARY_PATH="/usr/lib/gcc/x86_64-linux-gnu/13:$LD_LIBRARY_PATH"
fi
fi
# Docker Compose Alias (Mostly for old shell scripts)
alias docker-compose='docker compose'