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



                        
                




                         
         
        




                          

                                             
       

                                       
                              
            
set(LLVM_LINK_COMPONENTS
  Support
  )

add_lld_tool(lld
  lld.cpp
  )

target_link_libraries(lld
  lldDriver
  lldCOFF
  lldELF
  )

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()