BinUtils: Avoid the 'ld.lld' ELF linker on Apple platforms
ld.lld
is an ELF linker, so we should never set CMAKE_LINKER
to this
when on an Apple platform.
CMAKE_LINKER
appears scantly used, so this does not seem to affect
very many projects.
One example where this can cause problems is when building LLVM's
Compiler-RT. One of their scripts uses CMAKE_LINKER
to detect the
supported architectures:
Thus, one can end up with a slightly misconfigured build whenever CMake
finds an ld.lld
next to clang
.
Topic-rename: binutils-apple-no-lld
Edited by Brad King