forked from OSchip/llvm-project
34 lines
529 B
CMake
34 lines
529 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Support
|
|
)
|
|
|
|
add_lld_tool(lld
|
|
lld.cpp
|
|
|
|
SUPPORT_PLUGINS
|
|
)
|
|
export_executable_symbols_for_plugins(lld)
|
|
|
|
target_link_libraries(lld
|
|
PRIVATE
|
|
lldCommon
|
|
lldCOFF
|
|
lldDriver
|
|
lldELF
|
|
lldMachO
|
|
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 ld64.lld.darwinnew ld64.lld.darwinold wasm-ld)
|
|
endif()
|
|
|
|
foreach(link ${LLD_SYMLINKS_TO_CREATE})
|
|
add_lld_symlink(${link} lld)
|
|
endforeach()
|