[clang] a020006 - Add support of the next Debian (Debian 13 - Trixie)
Sylvestre Ledru via cfe-commits
cfe-commits at lists.llvm.org
Mon May 23 04:51:43 PDT 2022
Author: Sylvestre Ledru
Date: 2022-05-23T13:47:13+02:00
New Revision: a02000611a8fc4843f7a3077d8bb4840ef08de8b
URL: https://github.com/llvm/llvm-project/commit/a02000611a8fc4843f7a3077d8bb4840ef08de8b
DIFF: https://github.com/llvm/llvm-project/commit/a02000611a8fc4843f7a3077d8bb4840ef08de8b.diff
LOG: Add support of the next Debian (Debian 13 - Trixie)
Added:
Modified:
clang/include/clang/Driver/Distro.h
clang/lib/Driver/Distro.cpp
Removed:
################################################################################
diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h
index 2723f75e89458..c31fbd4e93f1a 100644
--- a/clang/include/clang/Driver/Distro.h
+++ b/clang/include/clang/Driver/Distro.h
@@ -38,6 +38,7 @@ class Distro {
DebianBuster,
DebianBullseye,
DebianBookworm,
+ DebianTrixie,
Exherbo,
RHEL5,
RHEL6,
@@ -121,7 +122,7 @@ class Distro {
bool IsOpenSUSE() const { return DistroVal == OpenSUSE; }
bool IsDebian() const {
- return DistroVal >= DebianLenny && DistroVal <= DebianBookworm;
+ return DistroVal >= DebianLenny && DistroVal <= DebianTrixie;
}
bool IsUbuntu() const {
diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp
index 5ac38c34d1128..b0e2f3ac94c75 100644
--- a/clang/lib/Driver/Distro.cpp
+++ b/clang/lib/Driver/Distro.cpp
@@ -153,6 +153,8 @@ static Distro::DistroType DetectDistro(llvm::vfs::FileSystem &VFS) {
return Distro::DebianBullseye;
case 12:
return Distro::DebianBookworm;
+ case 13:
+ return Distro::DebianTrixie;
default:
return Distro::UnknownDistro;
}
More information about the cfe-commits
mailing list