]> granicus.if.org Git - clang/commitdiff
Add support of the future Debian (Debian 11 - Bullseye)
authorSylvestre Ledru <sylvestre@debian.org>
Fri, 19 Apr 2019 13:46:58 +0000 (13:46 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Fri, 19 Apr 2019 13:46:58 +0000 (13:46 +0000)
https://wiki.debian.org/DebianBullseye

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358757 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/Distro.h
lib/Driver/Distro.cpp

index 30373d107fe9907ed23b51bfcd6a50f184fe1920..67dc764fb7d1d3a41db5333ba370c0512a59d4eb 100644 (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 {
index 737f172a06e1c4d59802d91a0bbac2a32b2a0b81..659aa06e3ffbc0993db7a3904102c7f41f166bde 100644 (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;
       }