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 | 18ec09093871c50e949488e984982cc61b37e849 (patch) | |
tree | 2a49b8af9cff35c70b0d9d383ef1a85e65fffa03 | |
parent | a3e2192f3080f4b2f4745a527d188459bca6d3b2 (diff) | |
download | llvm-18ec09093871c50e949488e984982cc61b37e849.zip llvm-18ec09093871c50e949488e984982cc61b37e849.tar.gz llvm-18ec09093871c50e949488e984982cc61b37e849.tar.bz2 |
Merging r170147: into the 3.2 release branch.
Add support for current Ubuntu Quantal and the upcoming Raring.
Patch by Martin Nowack.
llvm-svn: 170287
-rw-r--r-- | clang/lib/Driver/ToolChains.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp index a2ccb35..7d70cd5 100644 --- a/clang/lib/Driver/ToolChains.cpp +++ b/clang/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; } |