Eugene.Zelenko added a comment. It may be worth to mention LLVM CMake LLVM_ENABLE_LLD option with will add -fuse-ld=lld to CMAKE_EXE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS. https://reviews.llvm.org/D23695