]> granicus.if.org Git - clang/commitdiff
Add support of the next Ubuntu (Ubuntu 17.10 - Artful Aardvark)
authorSylvestre Ledru <sylvestre@debian.org>
Thu, 4 May 2017 12:46:38 +0000 (12:46 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 4 May 2017 12:46:38 +0000 (12:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302143 91177308-0d34-0410-b5e6-96231b3b80d8

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

index e2fb8b643350310027e4895bb825a2f94f37fae1..fab49862a442bc280465029aeb0cb46050b7b1c5 100644 (file)
@@ -57,6 +57,7 @@ public:
     UbuntuXenial,
     UbuntuYakkety,
     UbuntuZesty,
+    UbuntuArtful,
     UnknownDistro
   };
 
@@ -110,9 +111,9 @@ public:
   }
 
   bool IsUbuntu() const {
-    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuZesty;
+    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuArtful;
   }
+
   /// @}
 };
 
index d305b179449f284b672b42e05c1bb17f8d9a88f5..2df297f3cfc2d056e2e57dcaa1a3c0eb1395f7db 100644 (file)
@@ -47,6 +47,7 @@ static Distro::DistroType DetectDistro(vfs::FileSystem &VFS) {
                       .Case("xenial", Distro::UbuntuXenial)
                       .Case("yakkety", Distro::UbuntuYakkety)
                       .Case("zesty", Distro::UbuntuZesty)
+                      .Case("artful", Distro::UbuntuArtful)
                       .Default(Distro::UnknownDistro);
     if (Version != Distro::UnknownDistro)
       return Version;