forked from OSchip/llvm-project
Install symlink "otool" if LLVM_INSTALL_CCTOOLS_SYMLINKS is set
Differential Revision: https://reviews.llvm.org/D122313
This commit is contained in:
parent
890fc21742
commit
88da78ddd0
|
@ -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()
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue