Skip to content
Snippets Groups Projects
Commit 970151c4 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: VERSION_ID to VERSION_CODENAME

parent 0730ab7a
No related branches found
No related tags found
1 merge request!778feat: install iwyu in spack
This commit is part of merge request !778. Comments created here will be created in the context of that merge request.
......@@ -75,16 +75,17 @@ mkdir -p /etc/apt/source.list.d
# GCC version and repository
case ${ID} in
debian)
case ${VERSION_ID} in
12) GCC="-12" ;;
*) echo "Unsupported VERSION_ID=${VERSION_ID}" ; exit 1 ;;
case ${VERSION_CODENAME} in
bookworm) GCC="-12" ;;
trixie) GCC="-13" ;;
*) echo "Unsupported VERSION_CODENAME=${VERSION_CODENAME}" ; exit 1 ;;
esac ;;
ubuntu)
echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/ppa/ubuntu/${VERSION_CODENAME} main" > /etc/apt/source.list.d/ubuntu-toolchain.list
case ${VERSION_ID} in
20.04) GCC="-10" ;;
22.04) GCC="-12" ;;
*) echo "Unsupported VERSION_ID=${VERSION_ID}" ; exit 1 ;;
case ${VERSION_CODENAME} in
focal) GCC="-10" ;;
jammy) GCC="-12" ;;
*) echo "Unsupported VERSION_CODENAME=${VERSION_CODENAME}" ; exit 1 ;;
esac ;;
*) echo "Unsupported ID=${ID}" ; exit 1 ;;
esac
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment