aboutsummaryrefslogblamecommitdiffstats
path: root/tools/lld/CMakeLists.txt
blob: 0c946a3f8ce09e5ebd90c06f990c61253b8e33e1 (plain) (tree)
1
2
3
4
5
6
7
8
                




                         
         
        





                          

                                             
       

                                       
                              
            
add_lld_tool(lld
  lld.cpp
  )

target_link_libraries(lld
  lldDriver
  lldCOFF
  lldELF
  LLVMSupport
  )

install(TARGETS lld
  RUNTIME DESTINATION bin)

if(NOT LLD_SYMLINKS_TO_CREATE)
  set(LLD_SYMLINKS_TO_CREATE lld-link ld.lld)
endif()

foreach(link ${LLD_SYMLINKS_TO_CREATE})
  add_lld_symlink(${link} lld)
endforeach()