Add support of the future Debian (Debian 11 - Bullseye)

https://wiki.debian.org/DebianBullseye

llvm-svn: 358757
This commit is contained in:
Sylvestre Ledru 2019-04-19 13:46:58 +00:00
parent 454014199d
commit 54a93a33ee
2 changed files with 4 additions and 1 deletions

View File

@ -33,6 +33,7 @@ public:
DebianJessie,
DebianStretch,
DebianBuster,
DebianBullseye,
Exherbo,
RHEL5,
RHEL6,
@ -113,7 +114,7 @@ public:
}
bool IsDebian() const {
return DistroVal >= DebianLenny && DistroVal <= DebianBuster;
return DistroVal >= DebianLenny && DistroVal <= DebianBullseye;
}
bool IsUbuntu() const {

View File

@ -94,6 +94,8 @@ static Distro::DistroType DetectDistro(llvm::vfs::FileSystem &VFS) {
return Distro::DebianStretch;
case 10:
return Distro::DebianBuster;
case 11:
return Distro::DebianBullseye;
default:
return Distro::UnknownDistro;
}