]> granicus.if.org Git - clang/commitdiff
Driver: Fix two bad typos that were breaking the buildbots.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 28 Sep 2011 05:33:02 +0000 (05:33 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 28 Sep 2011 05:33:02 +0000 (05:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140682 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp
lib/Driver/ToolChains.cpp

index ed9e275f7b0618828ce4c364e40db0d30a47b621..711b7dbe1817898151e80f70d5c01557c44d305c 100644 (file)
@@ -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();
 
index f3db0a87c318178ec7a60ad76403b8d164cafc88..a2efb08fba4314ce59f398d567007ed4eb0663eb 100644 (file)
@@ -1519,7 +1519,7 @@ static std::string findGCCBaseLibDir(const Driver &D,
   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) {