[PATCH] D79629: [Clang][Driver]Pass LLVM options to lld in case of LTO

bin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat May 9 05:17:14 PDT 2020


bin.narwal added a comment.

In D79629#2026974 <https://reviews.llvm.org/D79629#2026974>, @MaskRay wrote:

> `-mllvm,foobar` is for compilation (.c/.cc -> .o)
>
> `-Wl,-mllvm,foobar` for LTO options. For linking, `-mllvm,foobar` is not used and thus warned.


Right, that's reasonable design.  The wrong UseLLD condition is a typo, anyway, I will discard this patch.

Thanks


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79629/new/

https://reviews.llvm.org/D79629





More information about the cfe-commits mailing list