From: Benjamin Kramer Date: Wed, 28 Sep 2011 05:33:02 +0000 (+0000) Subject: Driver: Fix two bad typos that were breaking the buildbots. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ca268423c400ef0109d2b8b29717a83f87e0f3e;p=clang Driver: Fix two bad typos that were breaking the buildbots. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140682 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index ed9e275f7b..711b7dbe18 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -1523,8 +1523,7 @@ std::string Driver::GetProgramPath(const char *Name, const ToolChain &TC, 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(); diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index f3db0a87c3..a2efb08fba 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -1519,7 +1519,7 @@ static std::string findGCCBaseLibDir(const Driver &D, bool Exists; llvm::SmallVector 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::const_iterator it = Paths.begin(), ie = Paths.end(); it != ie; ++it) {