[PATCH] D76452: Use LLD by default for Android.

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 26 14:45:06 PDT 2020


MaskRay added a comment.

In D76452#1944786 <https://reviews.llvm.org/D76452#1944786>, @srhines wrote:

> In D76452#1944733 <https://reviews.llvm.org/D76452#1944733>, @MaskRay wrote:
>
> > Another approach will be `-DCLANG_DEFAULT_LINKER=lld`. It provides a default value for `-fuse-ld=`.
>
>
> How does that work for Darwin builds? Is lld fully supported for MachO at this point, or will Clang still choose to use the preferred Apple linker?


I am not clear about your use case. lld can be used as ELF/Mach-O/COFF/WebAssembly linker. If you want to build ELF objects, -fuse-ld=lld (via clangDriver) or configure clang with -DCLANG_DEFAULT_LINKER=lld.
If you want to build Mach-O objects, lld's current Mach-O port lacks features (and will be removed). The new Mach-O port is still under development.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D76452





More information about the cfe-commits mailing list