[llvm-dev] lld: add build-time control for including ELF / COFF / Mach-O linkers?

Rui Ueyama via llvm-dev llvm-dev at lists.llvm.org
Mon Sep 12 13:52:16 PDT 2016

My understanding is that FreeBSD is using some build process other than the
standard CMake and thus you needed to write your own Makefile to build LLD,
and you want to minimize this effort by just compiling the ELF part of the
linker. Is this correct? If your motivation is to make non-standard build
process easy, my feeling is that it is not strong enough to justify to
separate them out.

On Mon, Sep 12, 2016 at 1:33 PM, Ed Maste <emaste at freebsd.org> wrote:

> On 12 September 2016 at 16:23, Rui Ueyama <ruiu at google.com> wrote:
> > What's the motivation to not build COFF and Mach-O parts? If you don't
> need
> > it, you could just leave it. Are you trying to reduce the executable
> size?
> It was just easier to remove coff::link() and mach_o::link() from
> lld.cpp than to add them to our own build infrastructure
> https://svnweb.freebsd.org/base/projects/clang390-import/
> usr.bin/clang/lld/Makefile?view=markup
> We get a slightly faster build and a slightly smaller binary, but I
> was motivated more by laziness than those factors. That is, it would
> have taken more work to include features that would be unused.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160912/a05be59b/attachment.html>

More information about the llvm-dev mailing list