blob: d8829493fc22bdfdcf655f8c5d081eb550028127 [file] [log] [blame]
set(LLVM_LINK_COMPONENTS
Support
)
add_lld_tool(lld
lld.cpp
)
target_link_libraries(lld
PRIVATE
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()