[PATCH] D12466: Fix empty -L Path on OSX hosts
David Blaikie via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 25 17:58:55 PST 2015
Is this testable?
On Nov 25, 2015 5:56 PM, "Martell Malone via cfe-commits" <
cfe-commits at lists.llvm.org> wrote:
> 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,
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151125/d642c3a2/attachment.html>
More information about the cfe-commits
mailing list