[clang] Add support for Debian 14 Forky and Debian 15 Duke (#138460)

Futureproofs our single Debian-specific special case for roughly the next 6 years.

See: https://lists.debian.org/debian-devel-announce/2025/01/msg00004.html
This commit is contained in:
Raul Tambre
2025-05-04 20:55:49 +03:00
committed by GitHub
parent f002f300c5
commit 58e6883c8b
2 changed files with 9 additions and 1 deletions

View File

@@ -39,6 +39,8 @@ public:
DebianBullseye,
DebianBookworm,
DebianTrixie,
DebianForky,
DebianDuke,
Exherbo,
RHEL5,
RHEL6,
@@ -129,7 +131,7 @@ public:
bool IsOpenSUSE() const { return DistroVal == OpenSUSE; }
bool IsDebian() const {
return DistroVal >= DebianLenny && DistroVal <= DebianTrixie;
return DistroVal >= DebianLenny && DistroVal <= DebianDuke;
}
bool IsUbuntu() const {

View File

@@ -161,6 +161,10 @@ static Distro::DistroType DetectDistro(llvm::vfs::FileSystem &VFS) {
return Distro::DebianBookworm;
case 13:
return Distro::DebianTrixie;
case 14:
return Distro::DebianForky;
case 15:
return Distro::DebianDuke;
default:
return Distro::UnknownDistro;
}
@@ -174,6 +178,8 @@ static Distro::DistroType DetectDistro(llvm::vfs::FileSystem &VFS) {
.Case("bullseye/sid", Distro::DebianBullseye)
.Case("bookworm/sid", Distro::DebianBookworm)
.Case("trixie/sid", Distro::DebianTrixie)
.Case("forky/sid", Distro::DebianForky)
.Case("duke/sid", Distro::DebianDuke)
.Default(Distro::UnknownDistro);
}