add workaround for llvm-config --system-libs

not handling static libs correctly
This commit is contained in:
Andrew Kelley 2018-09-19 18:28:50 -04:00
parent f9bf04c38b
commit 492821781d
No known key found for this signature in database
GPG Key ID: 4E7CD66038A4D47C

View File

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