Commit f043e0e85c

Andrew Kelley <superjoe30@gmail.com>
2017-04-13 06:12:44
build: ignore libLLD.so when it is a broken symlink
closes #318
1 parent 403eb92
Changed files (1)
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_)