Skip to content

Commit 46c2059

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 <raj.khem@gmail.com>
1 parent 2f1bcc5 commit 46c2059

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

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

0 commit comments

Comments
 (0)