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 b1c23ea9f..0f634f17a 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 0a7795d61..d7c67d8a7 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++"); }