workaround for llvm-config missing xml2

This commit is contained in:
Andrew Kelley 2018-03-10 14:48:41 -05:00
parent 6288ad865c
commit e4fd3fd52b
2 changed files with 4 additions and 0 deletions

View File

@ -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()

View File

@ -68,6 +68,7 @@ pub fn build(b: &Builder) !void {
exe.linkSystemLibrary("pthread");
} else if (exe.target.isDarwin()) {
exe.linkSystemLibrary("xml2");
exe.linkSystemLibrary("c++");
}