Install symlink "otool" if LLVM_INSTALL_CCTOOLS_SYMLINKS is set

Differential Revision: https://reviews.llvm.org/D122313
This commit is contained in:
Nico Weber 2022-03-23 09:42:31 -04:00
parent 890fc21742
commit 88da78ddd0
2 changed files with 8 additions and 0 deletions

View File

@ -44,3 +44,7 @@ add_llvm_tool_symlink(llvm-otool llvm-objdump)
if(LLVM_INSTALL_BINUTILS_SYMLINKS)
add_llvm_tool_symlink(objdump llvm-objdump)
endif()
if(LLVM_INSTALL_CCTOOLS_SYMLINKS)
add_llvm_tool_symlink(otool llvm-otool)
endif()

View File

@ -1,4 +1,5 @@
import("//llvm/tools/binutils_symlinks.gni")
import("//llvm/tools/cctools_symlinks.gni")
import("//llvm/utils/TableGen/tablegen.gni")
import("//llvm/utils/gn/build/symlink_or_copy.gni")
@ -16,6 +17,9 @@ symlinks = [ "llvm-otool" ]
if (llvm_install_binutils_symlinks) {
symlinks += [ "objdump" ]
}
if (llvm_install_cctools_symlinks) {
symlinks += [ "otool" ]
}
foreach(target, symlinks) {
symlink_or_copy(target) {