Skip to content

Commit f043e0e

Browse files
committed
build: ignore libLLD.so when it is a broken symlink
closes #318
1 parent 403eb92 commit f043e0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/Findlld.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ find_path(LLD_INCLUDE_DIRS NAMES lld/Driver/Driver.h
1212
/mingw64/include)
1313

1414
find_library(LLD_LIBRARY NAMES lld-4.0 lld PATHS /usr/lib/llvm-4.0/lib)
15-
if(LLD_LIBRARY)
15+
if(EXISTS ${LLD_LIBRARY})
1616
set(LLD_LIBRARIES ${LLD_LIBRARY})
1717
else()
1818
macro(FIND_AND_ADD_LLD_LIB _libname_)

0 commit comments

Comments
 (0)