[gn build] add llvm_install_cctools_symlinks arg
authorNico Weber <thakis@chromium.org>
Wed, 23 Mar 2022 13:32:49 +0000 (09:32 -0400)
committerNico Weber <thakis@chromium.org>
Wed, 23 Mar 2022 20:19:54 +0000 (16:19 -0400)
commit69cde915e923d04de91a42bd901b062baad1cbc3
tree8ce70036fc5075c6149f159239ba1f1f81789e72
parentf9889dd28ae42baa198def746c3cda5c860ff06c
[gn build] add llvm_install_cctools_symlinks arg

It behaves (mostly) like the LLVM_INSTALL_CCTOOLS_SYMLINKS option
in cmake.

The minor difference is that the llvm-objcopy symlinks bitcode_strip
and install_name_tool symlink to llvm-objcopy directly in the GN build,
while it's a bitcode_strip -> llvm-bitcode-strip -> objcopy chain
in the CMake build (and analogous for install_name_tool).

The implementation is very similar to the implementation of the
existing llvm_install_binutils_symlinks arg.

Differential Revision: https://reviews.llvm.org/D122312
llvm/utils/gn/secondary/BUILD.gn
llvm/utils/gn/secondary/lld/test/BUILD.gn
llvm/utils/gn/secondary/llvm/test/BUILD.gn
llvm/utils/gn/secondary/llvm/tools/cctools_symlinks.gni [new file with mode: 0644]
llvm/utils/gn/secondary/llvm/tools/llvm-libtool-darwin/BUILD.gn
llvm/utils/gn/secondary/llvm/tools/llvm-lipo/BUILD.gn
llvm/utils/gn/secondary/llvm/tools/llvm-objcopy/BUILD.gn