diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-12-13 20:26:05 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-12-13 20:26:05 +0000 |
| commit | 62e8770ff8474941e9713f7f034c7df354cae9ec (patch) | |
| tree | 592c7410b3d7fed1d8237298493f258626fa6d8f | |
| parent | aa0c8fffc73b993628b7e0f6fcd14758c719694a (diff) | |
| download | bcm5719-llvm-62e8770ff8474941e9713f7f034c7df354cae9ec.tar.gz bcm5719-llvm-62e8770ff8474941e9713f7f034c7df354cae9ec.zip | |
Add support for current Ubuntu Quantal and the upcoming Raring.
Patch by Martin Nowack.
llvm-svn: 170147
| -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 0cf402454b3..251467c75e0 100644 --- a/clang/lib/Driver/ToolChains.cpp +++ b/clang/lib/Driver/ToolChains.cpp @@ -2062,6 +2062,8 @@ enum LinuxDistro { UbuntuNatty, UbuntuOneiric, UbuntuPrecise, + UbuntuQuantal, + UbuntuRaring, UnknownDistro }; @@ -2079,7 +2081,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) { @@ -2101,6 +2103,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; } |

