]> granicus.if.org Git - clang/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316579 91177308-0d34-0410-b5e6-96231b3b80d8

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

index f079ceb73ec68f294b6f5c0f5283be06afc49643..eeb4f25f348bf0821f654ad62f543f8ed70db7e6 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 437641b23d7f5f7ae42cd288e84ed0b9fa166f4c..9a0b854e32f85a4baa6a22640edbb4706d71bbe7 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;
       }