aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/ToolChains.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-06-15 15:03:31 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-06-15 15:03:31 +0000
commit7fb2c25ab0b6fa1543bce410dbdb2ee5d2513a86 (patch)
treee5c24baadb98e01c9d28c1fdf97077cddd7c48b5 /lib/Driver/ToolChains.cpp
parentea3fe7c72b73ae09070ced4dc12ddbfbd29c0b1a (diff)
Driver/FreeBSD: Add libexec to program search paths, to workaround some build
problem; patch by Ed Schouten. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105996 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains.cpp')
-rw-r--r--lib/Driver/ToolChains.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp
index 9accfe7516..a31978c0bc 100644
--- a/lib/Driver/ToolChains.cpp
+++ b/lib/Driver/ToolChains.cpp
@@ -848,6 +848,8 @@ Tool &OpenBSD::SelectTool(const Compilation &C, const JobAction &JA) const {
FreeBSD::FreeBSD(const HostInfo &Host, const llvm::Triple& Triple, bool Lib32)
: Generic_GCC(Host, Triple) {
+ getProgramPaths().push_back(getDriver().Dir + "/../libexec");
+ getProgramPaths().push_back("/usr/libexec");
if (Lib32) {
getFilePaths().push_back(getDriver().Dir + "/../lib32");
getFilePaths().push_back("/usr/lib32");