Add support of the next Debian (Debian buster - version 10)
authorSylvestre Ledru <sylvestre@debian.org>
Wed, 25 Oct 2017 14:25:28 +0000 (14:25 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 25 Oct 2017 14:25:28 +0000 (14:25 +0000)
llvm-svn: 316579

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

index f079ceb..eeb4f25 100644 (file)
@@ -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 {
index 437641b..9a0b854 100644 (file)
@@ -89,6 +89,8 @@ static Distro::DistroType DetectDistro(vfs::FileSystem &VFS) {
         return Distro::DebianJessie;
       case 9:
         return Distro::DebianStretch;
+      case 10:
+        return Distro::DebianBuster;
       default:
         return Distro::UnknownDistro;
       }