The issue with LLVM_ENABLE_LLD is that it just passes -fuse-ld=lld
to compiler/linker options which makes sense only for those platforms
where cmake invokes a compiler driver for linking. On Windows (MSVC) cmake
invokes a linker directly and requires CMAKE_LINKER to be specified otherwise
it defaults CMAKE_LINKER to be link.exe.
This patch allows BOOTSTRAP_LLVM_ENABLE_LLD to set CMAKE_LINKER in the case
of building for host Windows. It also skips adding '-fuse-ld=lld' to make
lld-link not warning about 'unknown argument'.
I don't understand the second part of this condition, can you elaborate? Why not set CMAKE_LINKER to lld-link.exe even if BOOTSTRAP_CMAKE_SYSTEM_NAME STREQUAL "Windows"?