diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-04-30 23:42:57 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-04-30 23:42:57 +0000 |
commit | 4e1b292146936432dd6c76ba413f700eb1cd3432 (patch) | |
tree | 321a731de9af8ecb7e35c8d9a3d4ddea88d37371 /lib/Driver/ToolChains.cpp | |
parent | 8e5900c8e9bd32bcc385124f564f3d38a11d0e28 (diff) |
Add support for openSUSE 12.2, from Ismail Donmez!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155860 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains.cpp')
-rw-r--r-- | lib/Driver/ToolChains.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index c883e446dd..819039919d 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -1866,6 +1866,7 @@ enum LinuxDistro { OpenSuse11_3, OpenSuse11_4, OpenSuse12_1, + OpenSuse12_2, UbuntuHardy, UbuntuIntrepid, UbuntuJaunty, @@ -1884,7 +1885,7 @@ static bool IsRedhat(enum LinuxDistro Distro) { } static bool IsOpenSuse(enum LinuxDistro Distro) { - return Distro >= OpenSuse11_3 && Distro <= OpenSuse12_1; + return Distro >= OpenSuse11_3 && Distro <= OpenSuse12_2; } static bool IsDebian(enum LinuxDistro Distro) { @@ -1961,6 +1962,7 @@ static LinuxDistro DetectLinuxDistro(llvm::Triple::ArchType Arch) { .StartsWith("openSUSE 11.3", OpenSuse11_3) .StartsWith("openSUSE 11.4", OpenSuse11_4) .StartsWith("openSUSE 12.1", OpenSuse12_1) + .StartsWith("openSUSE 12.2", OpenSuse12_2) .Default(UnknownDistro); bool Exists; |