Ver código fonte

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

Sylvestre Ledru 6 anos atrás
pai
commit
c458ea61bc
2 arquivos alterados com 4 adições e 1 exclusões
  1. 2 1
      include/clang/Driver/Distro.h
  2. 2 0
      lib/Driver/Distro.cpp

+ 2 - 1
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 {

+ 2 - 0
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;
       }