# #lld - Linker capable of using the LLVM backend for Link Time Optimization # #This linker is also able to generate a number of executable output formats, #as can be expected from an inherent crosscompiler framework like LLVM. This #is in contrast to using the Microsoft linker (which is the default linker #when invoking clang on Windows). The Microsoft linker can only produce COFF #executables (ie not ELF for Linux/FreeBSD etc). When using clang to #crosscompile hosted under Windows, we want to make sure that we use lld, and #not the default (Microsoft) linker. This requires the following option to the #clang compiler: # #-fuse-ld= # ExternalProject_Add ( lld PREFIX ${CMAKE_INSTALL_PREFIX} URL http://releases.llvm.org/7.0.1/lld-7.0.1.src.tar.xz URL_MD5 9162cde32887cd33facead766645ef1f CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH= -DCMAKE_BUILD_TYPE:STRING=Release DEPENDS llvm )