[llvm-dev] Force clang to use ld.lld

Peter Smith via llvm-dev llvm-dev at lists.llvm.org
Tue Mar 27 01:58:11 PDT 2018


The option -fuse-ld is the closest option that I can think of. In its
most common form it accepts bfd, gold or lld, clang will then invoke
ld.bfd, ld.gold or ld.lld respectively. On many systems ld is a
symlink to an executable of the form ld.suffix. Alternatively the full
path to the linker can be given
-fuse-ld=/full/path/to/linker/executable

Peter

On 27 March 2018 at 00:40, Sumonto Ghosh via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Hi
> While cross compiling on Mac
> Host: Mac
> Target: Linux on ArmV7
>
> How can I force clang to use the non-system linker
> But use llvm-lld (i.e. ld.lld) or any other non standard linker
>
> Thanks
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>


More information about the llvm-dev mailing list