Skip to content

Commit 5a7375e

Browse files
committed
clang: Fix x86 triple for non-debian multiarch linux distros
OpenEmbedded does not hardcode mutli-arch like debian therefore ensure that it still uses the proper tuple Upstream-Status: Pending Signed-off-by: Khem Raj <[email protected]>
1 parent 10b2548 commit 5a7375e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Driver/ToolChains/Linux.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
216216
StringRef TripleStr = T.str();
217217
StringRef DebianMultiarch =
218218
T.getArch() == llvm::Triple::x86 ? "i386-linux-gnu" : TripleStr;
219+
// OpenEmbedded does not hardcode the triple to i386-linux-gnu like debian
220+
if (GCCInstallation.getTriple().getVendor() == llvm::Triple::OpenEmbedded)
221+
DebianMultiarch = TripleStr;
219222
return DebianMultiarch;
220223
};
221224

0 commit comments

Comments
 (0)