Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Commit 4a6c991

Browse files
andrewrkalexrp
authored andcommitted
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 fac79df commit 4a6c991

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lld/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ include_directories(BEFORE
189189
)
190190

191191
add_subdirectory(Common)
192-
add_subdirectory(tools/lld)
192+
if(LLD_BUILD_TOOLS)
193+
add_subdirectory(tools/lld)
194+
endif()
193195

194196
if (LLVM_INCLUDE_TESTS)
195197
add_custom_target(LLDUnitTests)

0 commit comments

Comments
 (0)