From e4fd3fd52b745ec450027656c041e33a9b758c24 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 10 Mar 2018 14:48:41 -0500 Subject: [PATCH] workaround for llvm-config missing xml2 --- CMakeLists.txt | 3 +++ build.zig | 1 + 2 files changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b1c23ea9f0b680e99bc529a5c4551f01ca4cbfe7..0f634f17ac9ed911f2526282c4bc2e9806e5618d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -709,6 +709,9 @@ target_link_libraries(zig LINK_PUBLIC ${LLVM_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ) +if(APPLE) + target_link_libraries(zig LINK_PUBLIC xml2) +endif() if(ZIG_DIA_GUIDS_LIB) target_link_libraries(zig LINK_PUBLIC ${ZIG_DIA_GUIDS_LIB}) endif() diff --git a/build.zig b/build.zig index 0a7795d615b0022f2750f3bf29cd9e4bb34e1f29..d7c67d8a788f7aeafaff15652aa1f438e6975c21 100644 --- a/build.zig +++ b/build.zig @@ -68,6 +68,7 @@ pub fn build(b: &Builder) !void { exe.linkSystemLibrary("pthread"); } else if (exe.target.isDarwin()) { + exe.linkSystemLibrary("xml2"); exe.linkSystemLibrary("c++"); } -- 2.54.0