authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-09-19 18:28:50-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-09-19 18:28:50-04:00
log492821781dc34659f694577aacbc853c8839406f
treeb0800d654e748a6b97f7d0daec7fb18672ce2779
parentf9bf04c38b693b0eee368416ec8eaba06a057e1e
signaturelock-open Commit is signed but in an unrecognized format.

add workaround for `llvm-config --system-libs`

not handling static libs correctly

1 files changed, 3 insertions(+), 0 deletions(-)

CMakeLists.txt+3
...@@ -50,6 +50,9 @@ option(ZIG_FORCE_EXTERNAL_LLD "If your system has the LLD patches use it instead...@@ -50,6 +50,9 @@ option(ZIG_FORCE_EXTERNAL_LLD "If your system has the LLD patches use it instead
50find_package(llvm)50find_package(llvm)
51find_package(clang)51find_package(clang)
5252
53# TODO fix https://github.com/ziglang/docker-zig/issues/7
54list(REMOVE_ITEM LLVM_LIBRARIES "-l/deps/local/lib/libxml2.a")
55
53if(NOT MSVC)56if(NOT MSVC)
54 find_library(LIBXML2 NAMES xml2 libxml2)57 find_library(LIBXML2 NAMES xml2 libxml2)
55 if(${LIBXML2} STREQUAL "LIBXML2-NOTFOUND")58 if(${LIBXML2} STREQUAL "LIBXML2-NOTFOUND")