[cfe-commits] r68332 - /cfe/trunk/lib/Driver/ToolChains.cpp
Daniel Dunbar
daniel at zuster.org
Thu Apr 2 11:30:04 PDT 2009
Author: ddunbar
Date: Thu Apr 2 13:30:04 2009
New Revision: 68332
URL: http://llvm.org/viewvc/llvm-project?rev=68332&view=rev
Log:
Driver: Tweak search paths for FreeBSD.
- Patch by Pawel Worach!
Modified:
cfe/trunk/lib/Driver/ToolChains.cpp
Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=68332&r1=68331&r2=68332&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Thu Apr 2 13:30:04 2009
@@ -373,10 +373,13 @@
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 {
More information about the cfe-commits
mailing list