aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/ToolChains.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-04-02 18:30:04 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-04-02 18:30:04 +0000
commitbc534664d008bc98d5ce76c053921bf5ee21fc65 (patch)
treecc7b5d73c9a87ebad7a8712ad2ce22c4531d5b24 /lib/Driver/ToolChains.cpp
parent8c98039bb1ada951d4403d354eccdc2df98aabea (diff)
Driver: Tweak search paths for FreeBSD.
- Patch by Pawel Worach! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68332 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains.cpp')
-rw-r--r--lib/Driver/ToolChains.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp
index 3b129cfad1..daa45d7a34 100644
--- a/lib/Driver/ToolChains.cpp
+++ b/lib/Driver/ToolChains.cpp
@@ -373,10 +373,13 @@ DerivedArgList *Generic_GCC::TranslateArgs(InputArgList &Args) const {
FreeBSD::FreeBSD(const HostInfo &Host, const char *Arch,
const char *Platform, const char *OS, bool Lib32)
: Generic_GCC(Host, Arch, Platform, OS) {
- if (Lib32)
+ if (Lib32) {
getFilePaths().push_back(getHost().getDriver().Dir + "/../lib32");
- else
+ getFilePaths().push_back("/usr/lib32");
+ } else {
getFilePaths().push_back(getHost().getDriver().Dir + "/../lib");
+ getFilePaths().push_back("/usr/lib");
+ }
}
Tool &FreeBSD::SelectTool(const Compilation &C, const JobAction &JA) const {