diff options
author | Pawel Wodnicki <pawel@32bitmicro.com> | 2012-12-16 15:59:27 +0000 |
---|---|---|
committer | Pawel Wodnicki <pawel@32bitmicro.com> | 2012-12-16 15:59:27 +0000 |
commit | 06b38478f55483167aafeb19edc87dda8ad1f9d3 (patch) | |
tree | eedeea95aac523f213b69122cbb7131958319a15 | |
parent | 5747fe72186fd2db4dc80d5023e4f782791578d1 (diff) | |
download | clang-06b38478f55483167aafeb19edc87dda8ad1f9d3.tar.gz clang-06b38478f55483167aafeb19edc87dda8ad1f9d3.tar.bz2 clang-06b38478f55483167aafeb19edc87dda8ad1f9d3.tar.xz |
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
-rw-r--r-- | lib/Driver/ToolChains.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index a2ccb35ed2..7d70cd50de 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -1855,6 +1855,8 @@ enum LinuxDistro { UbuntuNatty, UbuntuOneiric, UbuntuPrecise, + UbuntuQuantal, + UbuntuRaring, UnknownDistro }; @@ -1872,7 +1874,7 @@ static bool IsDebian(enum LinuxDistro Distro) { } 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 @@ static LinuxDistro DetectLinuxDistro(llvm::Triple::ArchType Arch) { .Case("natty", UbuntuNatty) .Case("oneiric", UbuntuOneiric) .Case("precise", UbuntuPrecise) + .Case("quantal", UbuntuQuantal) + .Case("raring", UbuntuRaring) .Default(UnknownDistro); return Version; } |