f1e1c239e3
branch point): https://llvm.org/svn/llvm-project/lld/trunk@366426
29 lines
412 B
CMake
29 lines
412 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Support
|
|
)
|
|
|
|
add_lld_tool(lld
|
|
lld.cpp
|
|
)
|
|
|
|
target_link_libraries(lld
|
|
PRIVATE
|
|
lldCommon
|
|
lldCOFF
|
|
lldDriver
|
|
lldELF
|
|
lldMinGW
|
|
lldWasm
|
|
)
|
|
|
|
install(TARGETS lld
|
|
RUNTIME DESTINATION bin)
|
|
|
|
if(NOT LLD_SYMLINKS_TO_CREATE)
|
|
set(LLD_SYMLINKS_TO_CREATE lld-link ld.lld ld64.lld wasm-ld)
|
|
endif()
|
|
|
|
foreach(link ${LLD_SYMLINKS_TO_CREATE})
|
|
add_lld_symlink(${link} lld)
|
|
endforeach()
|