if (!P.empty())
return P.str();
- P = llvm::sys::Path(llvm::sys::Program::FindProgramByName(
- TargetSpecificExecutable));
+ P = llvm::sys::Path(llvm::sys::Program::FindProgramByName(Name));
if (!P.empty())
return P.str();
bool Exists;
llvm::SmallVector<std::string, 8> Paths(D.PrefixDirs.begin(),
D.PrefixDirs.end());
- Paths.push_back("/usr/");
+ Paths.push_back("/usr/lib/");
const std::string *Triples[] = {&GccTriple, &D.DefaultHostTriple};
for (llvm::SmallVector<std::string, 8>::const_iterator it = Paths.begin(),
ie = Paths.end(); it != ie; ++it) {