From 88da78ddd0019755ee7f9f4279b909193c5f86af Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 23 Mar 2022 09:42:31 -0400 Subject: [PATCH] Install symlink "otool" if LLVM_INSTALL_CCTOOLS_SYMLINKS is set Differential Revision: https://reviews.llvm.org/D122313 --- llvm/tools/llvm-objdump/CMakeLists.txt | 4 ++++ llvm/utils/gn/secondary/llvm/tools/llvm-objdump/BUILD.gn | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/llvm/tools/llvm-objdump/CMakeLists.txt b/llvm/tools/llvm-objdump/CMakeLists.txt index 149bb3dc4acd..051c7f5d3454 100644 --- a/llvm/tools/llvm-objdump/CMakeLists.txt +++ b/llvm/tools/llvm-objdump/CMakeLists.txt @@ -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() diff --git a/llvm/utils/gn/secondary/llvm/tools/llvm-objdump/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-objdump/BUILD.gn index 84d3d0103edf..563419987dcd 100644 --- a/llvm/utils/gn/secondary/llvm/tools/llvm-objdump/BUILD.gn +++ b/llvm/utils/gn/secondary/llvm/tools/llvm-objdump/BUILD.gn @@ -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) {