[cfe-commits] r131857 - /cfe/trunk/lib/Driver/ToolChains.cpp

Chris Lattner sabre at nondot.org
Sun May 22 09:45:07 PDT 2011


Author: lattner
Date: Sun May 22 11:45:07 2011
New Revision: 131857

URL: http://llvm.org/viewvc/llvm-project?rev=131857&view=rev
Log:
add opensuse toolchain support, patch by Ismail Donmez!

Modified:
    cfe/trunk/lib/Driver/ToolChains.cpp

Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=131857&r1=131856&r2=131857&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Sun May 22 11:45:07 2011
@@ -1443,7 +1443,7 @@
 
   LinuxDistro Distro = DetectLinuxDistro(Arch);
 
-  if (IsUbuntu(Distro)) {
+  if (IsOpenSuse(Distro) || IsUbuntu(Distro)) {
     ExtraOpts.push_back("-z");
     ExtraOpts.push_back("relro");
   }
@@ -1451,11 +1451,12 @@
   if (Arch == llvm::Triple::arm || Arch == llvm::Triple::thumb)
     ExtraOpts.push_back("-X");
 
-  if (IsRedhat(Distro) || Distro == UbuntuMaverick || Distro == UbuntuNatty)
+  if (IsRedhat(Distro) || IsOpenSuse(Distro) || Distro == UbuntuMaverick || 
+      Distro == UbuntuNatty)
     ExtraOpts.push_back("--hash-style=gnu");
 
-  if (IsDebian(Distro) || Distro == UbuntuLucid || Distro == UbuntuJaunty ||
-      Distro == UbuntuKarmic)
+  if (IsDebian(Distro) || IsOpenSuse(Distro) || Distro == UbuntuLucid || 
+      Distro == UbuntuJaunty || Distro == UbuntuKarmic)
     ExtraOpts.push_back("--hash-style=both");
 
   if (IsRedhat(Distro))
@@ -1466,6 +1467,9 @@
       Distro == UbuntuKarmic || Distro == UbuntuNatty)
     ExtraOpts.push_back("--build-id");
 
+  if (IsOpenSuse(Distro))
+    ExtraOpts.push_back("--dynamic-tags");
+
   if (Distro == ArchLinux)
     Lib = "lib";
 





More information about the cfe-commits mailing list