Skip to content
This repository was archived by the owner on Dec 20, 2019. It is now read-only.

Commit 78e6eba

Browse files
committed
[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. git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@327126 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent be9c93a commit 78e6eba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/AddLLD.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ macro(add_lld_library name)
1010
llvm_add_library(${name} ${ARG_ENABLE_SHARED} ${ARG_UNPARSED_ARGUMENTS})
1111
set_target_properties(${name} PROPERTIES FOLDER "lld libraries")
1212

13-
if (LLD_BUILD_TOOLS)
13+
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
1414
if(${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
1515
NOT LLVM_DISTRIBUTION_COMPONENTS)
1616
set(export_to_lldtargets EXPORT lldTargets)

0 commit comments

Comments
 (0)