r316579 - Add support of the next Debian (Debian buster - version 10)

Sylvestre Ledru via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 25 07:25:28 PDT 2017


Author: sylvestre
Date: Wed Oct 25 07:25:28 2017
New Revision: 316579

URL: http://llvm.org/viewvc/llvm-project?rev=316579&view=rev
Log:
Add support of the next Debian (Debian buster - version 10)


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=316579&r1=316578&r2=316579&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Distro.h (original)
+++ cfe/trunk/include/clang/Driver/Distro.h Wed Oct 25 07:25:28 2017
@@ -32,6 +32,7 @@ public:
     DebianWheezy,
     DebianJessie,
     DebianStretch,
+    DebianBuster,
     Exherbo,
     RHEL5,
     RHEL6,
@@ -108,7 +109,7 @@ public:
   }
 
   bool IsDebian() const {
-    return DistroVal >= DebianLenny && DistroVal <= DebianStretch;
+    return DistroVal >= DebianLenny && DistroVal <= DebianBuster;
   }
 
   bool IsUbuntu() const {

Modified: cfe/trunk/lib/Driver/Distro.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Distro.cpp?rev=316579&r1=316578&r2=316579&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Distro.cpp (original)
+++ cfe/trunk/lib/Driver/Distro.cpp Wed Oct 25 07:25:28 2017
@@ -89,6 +89,8 @@ static Distro::DistroType DetectDistro(v
         return Distro::DebianJessie;
       case 9:
         return Distro::DebianStretch;
+      case 10:
+        return Distro::DebianBuster;
       default:
         return Distro::UnknownDistro;
       }




More information about the cfe-commits mailing list