Author: atanasyan Date: Thu May 19 10:05:22 2016 New Revision: 270067 URL: http://llvm.org/viewvc/llvm-project?rev=270067&view=rev Log: [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. Modified: cfe/trunk/lib/Driver/ToolChains.cpp Modified: cfe/trunk/lib/Driver/ToolChains.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=270067&r1=270066&r2=270067&view=diff ============================================================================== --- cfe/trunk/lib/Driver/ToolChains.cpp (original) +++ cfe/trunk/lib/Driver/ToolChains.cpp Thu May 19 10:05:22 2016 @@ -2011,7 +2011,7 @@ static bool findMIPSMultilibs(const Driv 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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits