[PATCH] D129855: [clang][PowerPC] Set lld as clang's default linker for PowerPC Linux

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 20 18:00:45 PDT 2022


MaskRay added a comment.

In D129855#3662457 <https://reviews.llvm.org/D129855#3662457>, @quinnp wrote:

> In D129855#3657006 <https://reviews.llvm.org/D129855#3657006>, @MaskRay wrote:
>
>> This is not right as using `ld.lld` as the default linker isn't the majority case. If you want to change the default for your distribution, set `-DCLANG_DEFAULT_LINKER=lld`.
>> (Alternatively, you can have a `ld` symlink pointing to `lld`.)
>
> Hi @MaskRay! Do you mean I should abandon this change or find a way to set the CMake variable `CLANG_DEFAULT_LINKER` to `lld` as default when building for PowerPC Linux? I wasn't able to find any examples of people setting CMake variables for specific distributions.
>
> Thanks!

You can customize `CLANG_DEFAULT_LINKER` in your clang distribution. I don't find convincing argument to change the default for `PPCLinuxToolChain` and diverge from `Linux`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129855



More information about the cfe-commits mailing list