[CMake] Properly conditionalize installation of lld libraries
authorDavid Zarzycki <dave@znu.io>
Fri, 9 Mar 2018 13:09:36 +0000 (13:09 +0000)
committerDavid Zarzycki <dave@znu.io>
Fri, 9 Mar 2018 13:09:36 +0000 (13:09 +0000)
commit3e77b20dbad6636b04d54cd74ff2c329fff30f46
tree23be748d00c558f41125968b6fa3970036b66f39
parent53e6ade9e0f2d5db53aab07d3492ba8a535d2439
[CMake] Properly conditionalize installation of lld libraries

In what appears to be a copy-and-paste error, lld currently only
installs libraries if the lld tools are configured to build.

Instead, lld should allow the libraries to be installed even if the lld
tools are not being built. Additionally, if users want to only install
the tools and not the libraries, the LLVM way of doing that is by
checking for LLVM_INSTALL_TOOLCHAIN_ONLY.

This fixes PR35960.

llvm-svn: 327126
lld/cmake/modules/AddLLD.cmake