Merging r170147: into the 3.2 release branch.
Add support for current Ubuntu Quantal and the upcoming Raring.
Patch by Martin Nowack.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@170287 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp
index a2ccb35..7d70cd5 100644
--- a/lib/Driver/ToolChains.cpp
+++ b/lib/Driver/ToolChains.cpp
@@ -1855,6 +1855,8 @@
UbuntuNatty,
UbuntuOneiric,
UbuntuPrecise,
+ UbuntuQuantal,
+ UbuntuRaring,
UnknownDistro
};
@@ -1872,7 +1874,7 @@
}
static bool IsUbuntu(enum LinuxDistro Distro) {
- return Distro >= UbuntuHardy && Distro <= UbuntuPrecise;
+ return Distro >= UbuntuHardy && Distro <= UbuntuRaring;
}
static LinuxDistro DetectLinuxDistro(llvm::Triple::ArchType Arch) {
@@ -1894,6 +1896,8 @@
.Case("natty", UbuntuNatty)
.Case("oneiric", UbuntuOneiric)
.Case("precise", UbuntuPrecise)
+ .Case("quantal", UbuntuQuantal)
+ .Case("raring", UbuntuRaring)
.Default(UnknownDistro);
return Version;
}