]> granicus.if.org Git - clang/commitdiff
Add support of the next Ubuntu (17.04 - Zesty Zapus)
authorSylvestre Ledru <sylvestre@debian.org>
Sat, 12 Nov 2016 09:26:30 +0000 (09:26 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sat, 12 Nov 2016 09:26:30 +0000 (09:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286716 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp

index 2062ee458b2ca6d72cec95c93c1ff69e90cbab5a..7ea7d417a9346c3c3fa904fef920850fc1f16060 100644 (file)
@@ -3865,6 +3865,7 @@ enum Distro {
   UbuntuWily,
   UbuntuXenial,
   UbuntuYakkety,
+  UbuntuZesty,
   UnknownDistro
 };
 
@@ -3879,7 +3880,7 @@ static bool IsDebian(enum Distro Distro) {
 }
 
 static bool IsUbuntu(enum Distro Distro) {
-  return Distro >= UbuntuHardy && Distro <= UbuntuYakkety;
+  return Distro >= UbuntuHardy && Distro <= UbuntuZesty;
 }
 
 static Distro DetectDistro(vfs::FileSystem &VFS) {
@@ -3911,6 +3912,7 @@ static Distro DetectDistro(vfs::FileSystem &VFS) {
                       .Case("wily", UbuntuWily)
                       .Case("xenial", UbuntuXenial)
                       .Case("yakkety", UbuntuYakkety)
+                      .Case("zesty", UbuntuZesty)
                       .Default(UnknownDistro);
     if (Version != UnknownDistro)
       return Version;