Driver: Tweak search paths for FreeBSD.

- Patch by Pawel Worach!

llvm-svn: 68332
This commit is contained in:
Daniel Dunbar 2009-04-02 18:30:04 +00:00
parent b594fa1289
commit b48a4aaec9
1 changed files with 5 additions and 2 deletions

View File

@ -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 {