[PATCH] D12466: Fix empty -L Path on OSX hosts
Martell Malone via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 25 17:04:51 PST 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL254117: Driver: protect from empty -L args (authored by martell).
Changed prior to commit:
http://reviews.llvm.org/D12466?vs=33510&id=41202#toc
Repository:
rL LLVM
http://reviews.llvm.org/D12466
Files:
cfe/trunk/lib/Driver/ToolChain.cpp
Index: cfe/trunk/lib/Driver/ToolChain.cpp
===================================================================
--- cfe/trunk/lib/Driver/ToolChain.cpp
+++ cfe/trunk/lib/Driver/ToolChain.cpp
@@ -619,7 +619,8 @@
void ToolChain::AddFilePathLibArgs(const ArgList &Args,
ArgStringList &CmdArgs) const {
for (const auto &LibPath : getFilePaths())
- CmdArgs.push_back(Args.MakeArgString(StringRef("-L") + LibPath));
+ if(LibPath.length() > 0)
+ CmdArgs.push_back(Args.MakeArgString(StringRef("-L") + LibPath));
}
void ToolChain::AddCCKextLibArgs(const ArgList &Args,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12466.41202.patch
Type: text/x-patch
Size: 613 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151126/41ab7b17/attachment.bin>
More information about the cfe-commits
mailing list