]> granicus.if.org Git - clang/commitdiff
Add Ubuntu Saucy to the list of known Ubuntu releases
authorSylvestre Ledru <sylvestre@debian.org>
Thu, 13 Jun 2013 11:52:27 +0000 (11:52 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 13 Jun 2013 11:52:27 +0000 (11:52 +0000)
Thanks to Dmitry Shachnev for the patch
See bug #16317

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183899 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp

index fffba0e4e50f07280de093c10000eeac793b4ee1..1a7eb1babb27935c2dca2e97141bcb7613d7b348 100644 (file)
@@ -2009,6 +2009,7 @@ enum Distro {
   UbuntuPrecise,
   UbuntuQuantal,
   UbuntuRaring,
+  UbuntuSaucy,
   UnknownDistro
 };
 
@@ -2026,7 +2027,7 @@ static bool IsDebian(enum Distro Distro) {
 }
 
 static bool IsUbuntu(enum Distro Distro) {
-  return Distro >= UbuntuHardy && Distro <= UbuntuRaring;
+  return Distro >= UbuntuHardy && Distro <= UbuntuSaucy;
 }
 
 static Distro DetectDistro(llvm::Triple::ArchType Arch) {
@@ -2050,6 +2051,7 @@ static Distro DetectDistro(llvm::Triple::ArchType Arch) {
           .Case("precise", UbuntuPrecise)
           .Case("quantal", UbuntuQuantal)
           .Case("raring", UbuntuRaring)
+          .Case("saucy", UbuntuSaucy)
           .Default(UnknownDistro);
     return Version;
   }