[llvm-dev] [cfe-dev] LLD to be the default linker in Clang

Carsten Mattner via llvm-dev llvm-dev at lists.llvm.org
Wed Nov 2 08:17:58 PDT 2016

I'm late to reply, but here's another data point which may or may not have
been raised already:

In light of the whole mono-repo debate, assuming more people will have
a complete checkout of the project(s), it's the right thing to default
to preferring compiler-rt, libc++, libunwind, lld, over bintuils, libstdc++,
libgcc etc.

The major argument I can bring forward is that this will increase testing
and make the life of non-macOS environments aiming to make their base
env llvm-only a lot easier. This will surely make it easier for Linux distros
to default to the llvm toolchain, while keeping gcc/binutils in ports, so to
say, for the rare codebase that needs it (linux, glibc).

It may sound weird to use llvm instead of gcc as the base toolchain on Linux,
but there are linux distros which default to musl, and these are prime
to provide a llvm-default profile. Gentoo users can probably do this anyway,
but there's benefit to extending voidlinux's musl profile or alpine linux's
only profile (musl) to use llvm. If anything, alpine being default for docker
images, it would increase real world testing even further.

In summary: yes, please.

More information about the llvm-dev mailing list