]> git.pld-linux.org Git - packages/llvm.git/blobdiff - llvm-pld.patch
disable debug packages on x32
[packages/llvm.git] / llvm-pld.patch
index 39122e88f3cac8efa86bbd102e5555a9a14d4e4b..ebf865dd41f730b9b75573fe076cb247a8d049bc 100644 (file)
 --- llvm-5.0.0.src/tools/clang/lib/Driver/ToolChains/Linux.cpp.orig    2017-12-01 22:14:03.462116884 +0100
 +++ llvm-5.0.0.src/tools/clang/lib/Driver/ToolChains/Linux.cpp 2017-12-01 22:51:38.678757801 +0100
 @@ -210,7 +210,7 @@
+     ExtraOpts.push_back("now");
+   }
  
-   Distro Distro(D.getVFS());
--  if (Distro.IsOpenSUSE() || Distro.IsUbuntu()) {
-+  if (Distro.IsOpenSUSE() || Distro.IsUbuntu() || Distro.IsPLD()) {
+-  if (Distro.IsOpenSUSE() || Distro.IsUbuntu() || Distro.IsAlpineLinux() ||
++  if (Distro.IsOpenSUSE() || Distro.IsUbuntu() || Distro.IsAlpineLinux() || Distro.IsPLD() ||
+       Triple.isAndroid()) {
      ExtraOpts.push_back("-z");
      ExtraOpts.push_back("relro");
-   }
 @@ -232,7 +232,7 @@
-   // Android loader does not support .gnu.hash.
+   // Android loader does not support .gnu.hash until API 23.
    // Hexagon linker/loader does not support .gnu.hash
-   if (!IsMips && !IsAndroid && !IsHexagon) {
--    if (Distro.IsRedhat() || Distro.IsOpenSUSE() ||
-+    if (Distro.IsRedhat() || Distro.IsOpenSUSE() || Distro.IsPLD() ||
-         (Distro.IsUbuntu() && Distro >= Distro::UbuntuMaverick))
+   if (!IsMips && !IsHexagon) {
+-    if (Distro.IsRedhat() || Distro.IsOpenSUSE() || Distro.IsAlpineLinux() ||
++    if (Distro.IsRedhat() || Distro.IsOpenSUSE() || Distro.IsAlpineLinux() || Distro.IsPLD() ||
+         (Distro.IsUbuntu() && Distro >= Distro::UbuntuMaverick) ||
+         (IsAndroid && !Triple.isAndroidVersionLT(23)))
        ExtraOpts.push_back("--hash-style=gnu");
 @@ -241,7 +241,7 @@
        ExtraOpts.push_back("--hash-style=both");
    }
This page took 0.025233 seconds and 4 git commands to generate.