Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion clang/include/clang/Driver/Distro.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ class Distro {
DebianBullseye,
DebianBookworm,
DebianTrixie,
DebianForky,
DebianDuke,
Exherbo,
RHEL5,
RHEL6,
Expand Down Expand Up @@ -129,7 +131,7 @@ class Distro {
bool IsOpenSUSE() const { return DistroVal == OpenSUSE; }

bool IsDebian() const {
return DistroVal >= DebianLenny && DistroVal <= DebianTrixie;
return DistroVal >= DebianLenny && DistroVal <= DebianDuke;
}

bool IsUbuntu() const {
Expand Down
6 changes: 6 additions & 0 deletions clang/lib/Driver/Distro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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);
}

Expand Down