Skip to content

Commit 46a7832

Browse files
committed
LLD patch: respect LLD_BUILD_TOOLS=OFF
Without this, cmake will build and install LLD binaries, which are unwanted, and also cause RPATH failures on some targets.
1 parent ccd9d9e commit 46a7832

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lld/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
190190
endif()
191191

192192
add_subdirectory(Common)
193-
add_subdirectory(tools/lld)
193+
if(LLD_BUILD_TOOLS)
194+
add_subdirectory(tools/lld)
195+
endif()
194196

195197
if (LLVM_INCLUDE_TESTS)
196198
add_custom_target(LLDUnitTests)

0 commit comments

Comments
 (0)