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

Ed Maste via llvm-dev llvm-dev at lists.llvm.org
Mon Sep 12 13:33:07 PDT 2016


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.


More information about the llvm-dev mailing list