]> granicus.if.org Git - clang/commitdiff
Add support of the latest Ubuntu (Yakkety Yak - 16.10)
authorSylvestre Ledru <sylvestre@debian.org>
Tue, 19 Jul 2016 14:00:57 +0000 (14:00 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 19 Jul 2016 14:00:57 +0000 (14:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@275975 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp

index f4a7fe6459940b488718549f3ecd284d92ce1a50..79f96cdaeac80b9d77808125ecf1ee3841394346 100644 (file)
@@ -3787,6 +3787,7 @@ enum Distro {
   UbuntuVivid,
   UbuntuWily,
   UbuntuXenial,
+  UbuntuYakkety,
   UnknownDistro
 };
 
@@ -3801,7 +3802,7 @@ static bool IsDebian(enum Distro Distro) {
 }
 
 static bool IsUbuntu(enum Distro Distro) {
-  return Distro >= UbuntuHardy && Distro <= UbuntuXenial;
+  return Distro >= UbuntuHardy && Distro <= UbuntuYakkety;
 }
 
 static Distro DetectDistro(const Driver &D, llvm::Triple::ArchType Arch) {
@@ -3832,6 +3833,7 @@ static Distro DetectDistro(const Driver &D, llvm::Triple::ArchType Arch) {
                       .Case("vivid", UbuntuVivid)
                       .Case("wily", UbuntuWily)
                       .Case("xenial", UbuntuXenial)
+                      .Case("yakkety", UbuntuYakkety)
                       .Default(UnknownDistro);
     if (Version != UnknownDistro)
       return Version;