Ed Maste via llvm-dev
2016-Sep-12 20:33 UTC
[llvm-dev] lld: add build-time control for including ELF / COFF / Mach-O linkers?
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.
Rui Ueyama via llvm-dev
2016-Sep-12 20:52 UTC
[llvm-dev] lld: add build-time control for including ELF / COFF / Mach-O linkers?
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>
Ed Maste via llvm-dev
2016-Sep-12 20:58 UTC
[llvm-dev] lld: add build-time control for including ELF / COFF / Mach-O linkers?
On 12 September 2016 at 16:52, Rui Ueyama <ruiu at google.com> wrote:> 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?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.Ok. It's easy enough to carry our small patch in FreeBSD until we either start building everything with our own build process, or we migrate to the stock build process.