feat: add GCC 13 configuration for Pop!_OS in .bashrc
This commit is contained in:
parent
f4ea1957a1
commit
8189d9ad4e
16
.bashrc
16
.bashrc
@ -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'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user