diff options
author | Mike Stump <mrs@apple.com> | 2009-03-27 00:40:20 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-03-27 00:40:20 +0000 |
commit | 950bedd8a9f00caabd2f1fc6812d70e08103f847 (patch) | |
tree | eff9f1c61330fbd437527db650af63b8baa2cd2b /lib/Driver/ToolChain.cpp | |
parent | 119057adf21237d53dcd490cec9700dca2465e3e (diff) |
Fix searching for gcc, we only want executable files.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67806 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChain.cpp')
-rw-r--r-- | lib/Driver/ToolChain.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Driver/ToolChain.cpp b/lib/Driver/ToolChain.cpp index aed58c9422..a7f6550205 100644 --- a/lib/Driver/ToolChain.cpp +++ b/lib/Driver/ToolChain.cpp @@ -30,6 +30,7 @@ llvm::sys::Path ToolChain::GetFilePath(const Compilation &C, } llvm::sys::Path ToolChain::GetProgramPath(const Compilation &C, - const char *Name) const { - return Host.getDriver().GetProgramPath(Name, *this); + const char *Name, + bool WantFile) const { + return Host.getDriver().GetProgramPath(Name, *this, WantFile); } |