Skip to content

Commit 0df5255

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 02f0a06 commit 0df5255

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
@@ -720,6 +720,9 @@ void Linux::addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
720720
GCCInstallation.getTriple().getArch() == llvm::Triple::x86
721721
? "i386-linux-gnu"
722722
: TripleStr;
723+
// OpenEmbedded does not hardcode the triple to i386-linux-gnu like debian
724+
if (GCCInstallation.getTriple().getVendor() == llvm::Triple::OpenEmbedded)
725+
DebianMultiarch = TripleStr;
723726

724727
// Try generic GCC detection first.
725728
if (Generic_GCC::addGCCLibStdCxxIncludePaths(DriverArgs, CC1Args,

0 commit comments

Comments
 (0)