aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-04-13 00:12:44 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-04-13 00:12:44 -0400
commitf043e0e85cac9330cf809bef177784c3cd133348 (patch)
tree3f21db31a20ae64ba26bcc870548de304d833399 /cmake
parent403eb92a626e44ab456099fe48fa221639e2e2f5 (diff)
downloadzig-f043e0e85cac9330cf809bef177784c3cd133348.tar.gz
zig-f043e0e85cac9330cf809bef177784c3cd133348.zip
build: ignore libLLD.so when it is a broken symlink
closes #318
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Findlld.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Findlld.cmake b/cmake/Findlld.cmake
index 0a30d20433..c4bdd89628 100644
--- a/cmake/Findlld.cmake
+++ b/cmake/Findlld.cmake
@@ -12,7 +12,7 @@ find_path(LLD_INCLUDE_DIRS NAMES lld/Driver/Driver.h
/mingw64/include)
find_library(LLD_LIBRARY NAMES lld-4.0 lld PATHS /usr/lib/llvm-4.0/lib)
-if(LLD_LIBRARY)
+if(EXISTS ${LLD_LIBRARY})
set(LLD_LIBRARIES ${LLD_LIBRARY})
else()
macro(FIND_AND_ADD_LLD_LIB _libname_)