From: Sylvestre Ledru Date: Fri, 19 Apr 2019 13:46:58 +0000 (+0000) Subject: Add support of the future Debian (Debian 11 - Bullseye) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c458ea61bc0f3ad51a033d438942e4824a0f2cb7;p=clang Add support of the future Debian (Debian 11 - Bullseye) https://wiki.debian.org/DebianBullseye git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358757 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/Distro.h b/include/clang/Driver/Distro.h index 30373d107f..67dc764fb7 100644 --- a/include/clang/Driver/Distro.h +++ b/include/clang/Driver/Distro.h @@ -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 { diff --git a/lib/Driver/Distro.cpp b/lib/Driver/Distro.cpp index 737f172a06..659aa06e3f 100644 --- a/lib/Driver/Distro.cpp +++ b/lib/Driver/Distro.cpp @@ -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; }