authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-03-10 14:48:41-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-03-10 14:48:41-05:00
loge4fd3fd52b745ec450027656c041e33a9b758c24
tree1b8c2ebd2ceffa0ab8b1adaeccfc9a67a1e2e3a4
parent6288ad865cd0805cedcac242990c1b7b57950cc4

workaround for llvm-config missing xml2


2 files changed, 4 insertions(+), 0 deletions(-)

CMakeLists.txt+3
......@@ -709,6 +709,9 @@ target_link_libraries(zig LINK_PUBLIC
709709 ${LLVM_LIBRARIES}
710710 ${CMAKE_THREAD_LIBS_INIT}
711711)
712if(APPLE)
713 target_link_libraries(zig LINK_PUBLIC xml2)
714endif()
712715if(ZIG_DIA_GUIDS_LIB)
713716 target_link_libraries(zig LINK_PUBLIC ${ZIG_DIA_GUIDS_LIB})
714717endif()
build.zig+1
......@@ -68,6 +68,7 @@ pub fn build(b: &Builder) !void {
6868
6969 exe.linkSystemLibrary("pthread");
7070 } else if (exe.target.isDarwin()) {
71 exe.linkSystemLibrary("xml2");
7172 exe.linkSystemLibrary("c++");
7273 }
7374