forked from OSchip/llvm-project
Driver: Tweak search paths for FreeBSD.
- Patch by Pawel Worach! llvm-svn: 68332
This commit is contained in:
parent
b594fa1289
commit
b48a4aaec9
|
@ -373,10 +373,13 @@ DerivedArgList *Generic_GCC::TranslateArgs(InputArgList &Args) const {
|
||||||
FreeBSD::FreeBSD(const HostInfo &Host, const char *Arch,
|
FreeBSD::FreeBSD(const HostInfo &Host, const char *Arch,
|
||||||
const char *Platform, const char *OS, bool Lib32)
|
const char *Platform, const char *OS, bool Lib32)
|
||||||
: Generic_GCC(Host, Arch, Platform, OS) {
|
: Generic_GCC(Host, Arch, Platform, OS) {
|
||||||
if (Lib32)
|
if (Lib32) {
|
||||||
getFilePaths().push_back(getHost().getDriver().Dir + "/../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(getHost().getDriver().Dir + "/../lib");
|
||||||
|
getFilePaths().push_back("/usr/lib");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Tool &FreeBSD::SelectTool(const Compilation &C, const JobAction &JA) const {
|
Tool &FreeBSD::SelectTool(const Compilation &C, const JobAction &JA) const {
|
||||||
|
|
Loading…
Reference in New Issue