1 set(LLVM_LINK_COMPONENTS 2 ${LLVM_TARGETS_TO_BUILD} 3 Core 4 DlltoolDriver 5 LibDriver 6 Object 7 Support 8 ) 9 10 add_llvm_tool(llvm-ar 11 llvm-ar.cpp 12 13 DEPENDS 14 intrinsics_gen 15 ) 16 17 add_llvm_tool_symlink(llvm-ranlib llvm-ar) 18 add_llvm_tool_symlink(llvm-lib llvm-ar) 19 add_llvm_tool_symlink(llvm-dlltool llvm-ar) 20 21 if(LLVM_INSTALL_BINUTILS_SYMLINKS) 22 add_llvm_tool_symlink(ar llvm-ar) 23 add_llvm_tool_symlink(dlltool llvm-ar) 24 add_llvm_tool_symlink(ranlib llvm-ar) 25 endif() 26