Skip to content

Commit ada0435

Browse files
committed
CMake: don't try to use lld if we're not building it.
Monorepo version! llvm-svn: 304716
1 parent 997f776 commit ada0435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ if(EXISTS ${COMPILER_RT_LLD_PATH}/ AND LLVM_TOOL_LLD_BUILD)
255255
set(COMPILER_RT_HAS_LLD TRUE)
256256
else()
257257
set(COMPILER_RT_LLD_PATH ${LLVM_MAIN_SRC_DIR}/../lld)
258-
if(EXISTS ${COMPILER_RT_LLD_PATH}/)
258+
if(EXISTS ${COMPILER_RT_LLD_PATH}/ AND LLVM_TOOL_LLD_BUILD)
259259
set(COMPILER_RT_HAS_LLD TRUE)
260260
else()
261261
set(COMPILER_RT_HAS_LLD FALSE)

0 commit comments

Comments
 (0)