aboutsummaryrefslogblamecommitdiffstats
path: root/main/clang/40-fix-ld-name-on-x86.patch
blob: 4150fa6f8de504dfaa033bb7e3e6a3c3316d2efa (plain) (tree)



















                                                                                     
Upstream: No
Author: Rasmus Thomsen <oss@cogitri.dev>
Reason: We have a mismatch between the name of our target triplet and the
name of the ld for musl
diff --git a/lib/Driver/ToolChains/Linux.cpp b/lib/Driver/ToolChains/Linux.cpp
index bff1ab10..68ca89d9 100644
--- a/lib/Driver/ToolChains/Linux.cpp
+++ b/lib/Driver/ToolChains/Linux.cpp
@@ -531,6 +531,11 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const {
       ArchName = "armeb";
       IsArm = true;
       break;
+    // FIXME: The Triplet name for x86 on Alpine Linux (i686) doesn't match
+    // up with the name for the ld (i386)!
+    case llvm::Triple::x86:
+      ArchName = "i386";
+      break;
     default:
       ArchName = Triple.getArchName().str();
     }