]> granicus.if.org Git - clang/commitdiff
Add support for openSUSE 12.2, from Ismail Donmez!
authorDouglas Gregor <dgregor@apple.com>
Mon, 30 Apr 2012 23:42:57 +0000 (23:42 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 30 Apr 2012 23:42:57 +0000 (23:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155860 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp

index c883e446dd2cc85e9cb3aa615091627d2df131ce..819039919d5eb1ff4e46fc46a2f11f366339d232 100644 (file)
@@ -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;