[llvm] 88da78d - Install symlink "otool" if LLVM_INSTALL_CCTOOLS_SYMLINKS is set

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 23 13:22:35 PDT 2022


Author: Nico Weber
Date: 2022-03-23T16:22:24-04:00
New Revision: 88da78ddd0019755ee7f9f4279b909193c5f86af

URL: https://github.com/llvm/llvm-project/commit/88da78ddd0019755ee7f9f4279b909193c5f86af
DIFF: https://github.com/llvm/llvm-project/commit/88da78ddd0019755ee7f9f4279b909193c5f86af.diff

LOG: Install symlink "otool" if LLVM_INSTALL_CCTOOLS_SYMLINKS is set

Differential Revision: https://reviews.llvm.org/D122313

Added: 
    

Modified: 
    llvm/tools/llvm-objdump/CMakeLists.txt
    llvm/utils/gn/secondary/llvm/tools/llvm-objdump/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-objdump/CMakeLists.txt b/llvm/tools/llvm-objdump/CMakeLists.txt
index 149bb3dc4acd0..051c7f5d3454c 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 84d3d0103edfb..563419987dcd3 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) {


        


More information about the llvm-commits mailing list