From: Simon Atanasyan Date: Thu, 19 May 2016 15:05:22 +0000 (+0000) Subject: [driver][mips] Hardcode triple name in case of CodeSourcery toolchain. NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ce9af0bcbe9debb4f69dec770cec805bfba5f2c;p=clang [driver][mips] Hardcode triple name in case of CodeSourcery toolchain. NFC CodeSourcery toolchain is a standalone toolchain which always uses the same triple name in its paths. It is independent from target triple used by the driver. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@270067 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 49e8c06a75..3ec013c347 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -2011,7 +2011,7 @@ static bool findMIPSMultilibs(const Driver &D, const llvm::Triple &TargetTriple, std::vector Dirs; Dirs.push_back((InstallDir + "/include").str()); std::string SysRootInc = - InstallDir.str() + "/../../../../" + TripleStr.str(); + InstallDir.str() + "/../../../../mips-linux-gnu"; if (StringRef(M.includeSuffix()).startswith("/uclibc")) Dirs.push_back(SysRootInc + "/libc/uclibc/usr/include"); else