From: Daniel Dunbar Date: Thu, 2 Apr 2009 18:30:04 +0000 (+0000) Subject: Driver: Tweak search paths for FreeBSD. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc534664d008bc98d5ce76c053921bf5ee21fc65;p=clang 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 --- 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 {