]> granicus.if.org Git - clang/commitdiff
Ubuntu has published its Saucy release. 'Trusty Tahr' dev has just started. Add its...
authorSylvestre Ledru <sylvestre@debian.org>
Thu, 7 Nov 2013 09:31:30 +0000 (09:31 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 7 Nov 2013 09:31:30 +0000 (09:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194198 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp

index cc1efb69c9e5d48170a59ddb958e89bff4aff539..bec794e99d4b3b9676854f61646f8be5e0ebf728 100644 (file)
@@ -2114,6 +2114,7 @@ enum Distro {
   UbuntuQuantal,
   UbuntuRaring,
   UbuntuSaucy,
+  UbuntuTrusty,
   UnknownDistro
 };
 
@@ -2130,7 +2131,7 @@ static bool IsDebian(enum Distro Distro) {
 }
 
 static bool IsUbuntu(enum Distro Distro) {
-  return Distro >= UbuntuHardy && Distro <= UbuntuSaucy;
+  return Distro >= UbuntuHardy && Distro <= UbuntuTrusty;
 }
 
 static Distro DetectDistro(llvm::Triple::ArchType Arch) {
@@ -2155,6 +2156,7 @@ static Distro DetectDistro(llvm::Triple::ArchType Arch) {
           .Case("quantal", UbuntuQuantal)
           .Case("raring", UbuntuRaring)
           .Case("saucy", UbuntuSaucy)
+          .Case("trusty", UbuntuTrusty)
           .Default(UnknownDistro);
     return Version;
   }