]> granicus.if.org Git - clang/commitdiff
add support of the latest Ubuntu (Xenial Xerus)
authorSylvestre Ledru <sylvestre@debian.org>
Thu, 29 Oct 2015 17:27:55 +0000 (17:27 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 29 Oct 2015 17:27:55 +0000 (17:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251639 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp

index 97f17cf1b17dce3c2bb22b3bd01a7daf1cd7e932..a33ed9f9addc492530381756b54fb0eb195f0af7 100644 (file)
@@ -3253,6 +3253,7 @@ enum Distro {
   UbuntuUtopic,
   UbuntuVivid,
   UbuntuWily,
+  UbuntuXenial,
   UnknownDistro
 };
 
@@ -3267,7 +3268,7 @@ static bool IsDebian(enum Distro Distro) {
 }
 
 static bool IsUbuntu(enum Distro Distro) {
-  return Distro >= UbuntuHardy && Distro <= UbuntuWily;
+  return Distro >= UbuntuHardy && Distro <= UbuntuXenial;
 }
 
 static Distro DetectDistro(const Driver &D, llvm::Triple::ArchType Arch) {
@@ -3297,6 +3298,7 @@ static Distro DetectDistro(const Driver &D, llvm::Triple::ArchType Arch) {
                       .Case("utopic", UbuntuUtopic)
                       .Case("vivid", UbuntuVivid)
                       .Case("wily", UbuntuWily)
+                      .Case("xenial", UbuntuXenial)
                       .Default(UnknownDistro);
     return Version;
   }