]> granicus.if.org Git - clang/commitdiff
[driver][mips] Hardcode triple name in case of CodeSourcery toolchain. NFC
authorSimon Atanasyan <simon@atanasyan.com>
Thu, 19 May 2016 15:05:22 +0000 (15:05 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Thu, 19 May 2016 15:05:22 +0000 (15:05 +0000)
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

lib/Driver/ToolChains.cpp

index 49e8c06a75f04d1aaebee2dd42984cd243286174..3ec013c347316907aadb4af7e2d5c46ef11bd9e4 100644 (file)
@@ -2011,7 +2011,7 @@ static bool findMIPSMultilibs(const Driver &D, const llvm::Triple &TargetTriple,
               std::vector<std::string> 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