[LLVMdev] How to use the LLD linker to link llvm/clang/lld?

619 views
Skip to first unread message

Simon Atanasyan

unread,
Apr 11, 2014, 5:00:08 AM4/11/14
to Michael Spencer, llvmdev
Hi,

If I understand the phrase "lld can self host on x86-64 Linux" from
the LLD home page properly, we can link llvm/clang/lld using lld
itself. How that can be done? Are there any ways to tell the Clang
driver to use the LLD or the only approach is to run the LLD
explicitly "by hand" with a large set of arguments?

--
Simon
_______________________________________________
LLVM Developers mailing list
LLV...@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

Michael Spencer

unread,
Apr 11, 2014, 5:43:00 AM4/11/14
to Simon Atanasyan, llvmdev
On Fri, Apr 11, 2014 at 2:00 AM, Simon Atanasyan <si...@atanasyan.com> wrote:
> Hi,
>
> If I understand the phrase "lld can self host on x86-64 Linux" from
> the LLD home page properly, we can link llvm/clang/lld using lld
> itself. How that can be done? Are there any ways to tell the Clang
> driver to use the LLD or the only approach is to run the LLD
> explicitly "by hand" with a large set of arguments?
>
> --
> Simon

I make a symlink to lld named ld in a directory then add that to the
front of PATH. Then configure and build.

- Michael Spencer

Simon Atanasyan

unread,
Apr 11, 2014, 6:07:36 AM4/11/14
to Michael Spencer, llvmdev
On Fri, Apr 11, 2014 at 1:43 PM, Michael Spencer <bigch...@gmail.com> wrote:
> On Fri, Apr 11, 2014 at 2:00 AM, Simon Atanasyan <si...@atanasyan.com> wrote:
>> If I understand the phrase "lld can self host on x86-64 Linux" from
>> the LLD home page properly, we can link llvm/clang/lld using lld
>> itself. How that can be done? Are there any ways to tell the Clang
>> driver to use the LLD or the only approach is to run the LLD
>> explicitly "by hand" with a large set of arguments?
>>
>> --
>> Simon
>
> I make a symlink to lld named ld in a directory then add that to the
> front of PATH. Then configure and build.

So easy? :) Thanks a lot.

--
Simon
Reply all
Reply to author
Forward
0 new messages