Simon Atanasyan
2014-Apr-11 09:00 UTC
[LLVMdev] How to use the LLD linker to link llvm/clang/lld?
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
Michael Spencer
2014-Apr-11 09:43 UTC
[LLVMdev] How to use the LLD linker to link llvm/clang/lld?
On Fri, Apr 11, 2014 at 2:00 AM, Simon Atanasyan <simon at 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? > > -- > SimonI 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
2014-Apr-11 10:07 UTC
[LLVMdev] How to use the LLD linker to link llvm/clang/lld?
On Fri, Apr 11, 2014 at 1:43 PM, Michael Spencer <bigcheesegs at gmail.com> wrote:> On Fri, Apr 11, 2014 at 2:00 AM, Simon Atanasyan <simon at 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
Seemingly Similar Threads
- [LLVMdev] [lld] Linker cannot handle sections with non-unique names
- [LLVMdev] [lld] Representation of lld::Reference with a fake target
- [LLVMdev] [lld] Representation of lld::Reference with a fake target
- [LLVMdev] GNU LLD build error? Seems that Clang likes LLD just fine.
- [LLVMdev] GNU LLD build error? Seems that Clang likes LLD just fine.