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

Sylvestre Ledru via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 19 06:46:58 PDT 2019


Author: sylvestre
Date: Fri Apr 19 06:46:58 2019
New Revision: 358757

URL: http://llvm.org/viewvc/llvm-project?rev=358757&view=rev
Log:
Add support of the future Debian (Debian 11 - Bullseye)
https://wiki.debian.org/DebianBullseye


Modified:
    cfe/trunk/include/clang/Driver/Distro.h
    cfe/trunk/lib/Driver/Distro.cpp

Modified: cfe/trunk/include/clang/Driver/Distro.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Distro.h?rev=358757&r1=358756&r2=358757&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Distro.h (original)
+++ cfe/trunk/include/clang/Driver/Distro.h Fri Apr 19 06:46:58 2019
@@ -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 {

Modified: cfe/trunk/lib/Driver/Distro.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Distro.cpp?rev=358757&r1=358756&r2=358757&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Distro.cpp (original)
+++ cfe/trunk/lib/Driver/Distro.cpp Fri Apr 19 06:46:58 2019
@@ -94,6 +94,8 @@ static Distro::DistroType DetectDistro(l
         return Distro::DebianStretch;
       case 10:
         return Distro::DebianBuster;
+      case 11:
+        return Distro::DebianBullseye;
       default:
         return Distro::UnknownDistro;
       }




More information about the cfe-commits mailing list