[CMake] Refactor and cleanup generating and installing symlinks to tools.
authorChris Bieneman <beanz@apple.com>
Mon, 14 Sep 2015 23:09:06 +0000 (23:09 +0000)
committerChris Bieneman <beanz@apple.com>
Mon, 14 Sep 2015 23:09:06 +0000 (23:09 +0000)
commit2ec309f7d116b6f10cf7dc4ca481aa69ddbe1e5b
tree9e35f69190eccd578b3fe7d4fab9c251b2c0af57
parentfee1f68d01192ae7e7e0fc5596a879c7237d05a0
[CMake] Refactor and cleanup generating and installing symlinks to tools.

Summary: This change generalizes symlink generation and makes symlinks to tools obey LLVM_TOOLCHAIN_TOOLS. It makes it so that if you exclude llvm-ar from LLVM_TOOLCHAIN_TOOLS you don't end up with broken symlinks to llvm-lib and llvm-ranlib in your install.

Reviewers: bogner, chapuni, rafael

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D12864

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247632 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/AddLLVM.cmake
cmake/modules/install_symlink.cmake [new file with mode: 0644]
tools/llvm-ar/CMakeLists.txt
tools/llvm-ar/install_symlink.cmake [deleted file]