summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/clang/0025-clang-Fix-x86-triple-for-non-debian-multiarch-linux-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-devtools/clang/clang/0025-clang-Fix-x86-triple-for-non-debian-multiarch-linux-.patch')
-rw-r--r--recipes-devtools/clang/clang/0025-clang-Fix-x86-triple-for-non-debian-multiarch-linux-.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes-devtools/clang/clang/0025-clang-Fix-x86-triple-for-non-debian-multiarch-linux-.patch b/recipes-devtools/clang/clang/0025-clang-Fix-x86-triple-for-non-debian-multiarch-linux-.patch
new file mode 100644
index 0000000..56c97b6
--- /dev/null
+++ b/recipes-devtools/clang/clang/0025-clang-Fix-x86-triple-for-non-debian-multiarch-linux-.patch
@@ -0,0 +1,27 @@
1From a92c1148c71e0152d6b2027bf59c8eb46ecee800 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 19 May 2021 17:56:03 -0700
4Subject: [PATCH] clang: Fix x86 triple for non-debian multiarch linux distros
5
6OpenEmbedded does not hardcode mutli-arch like debian therefore ensure
7that it still uses the proper tuple
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 clang/lib/Driver/ToolChains/Linux.cpp | 3 +++
12 1 file changed, 3 insertions(+)
13
14diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp
15index bf73b1ef27db..eb92a037c930 100644
16--- a/clang/lib/Driver/ToolChains/Linux.cpp
17+++ b/clang/lib/Driver/ToolChains/Linux.cpp
18@@ -636,6 +636,9 @@ void Linux::addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
19 GCCInstallation.getTriple().getArch() == llvm::Triple::x86
20 ? "i386-linux-gnu"
21 : TripleStr;
22+ // OpenEmbedded does not hardcode the triple to i386-linux-gnu like debian
23+ if (GCCInstallation.getTriple().getVendor() == llvm::Triple::OpenEmbedded)
24+ DebianMultiarch = TripleStr;
25
26 // Try generic GCC detection first.
27 if (Generic_GCC::addGCCLibStdCxxIncludePaths(DriverArgs, CC1Args,