mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 00:26:57 +00:00
workaround for llvm-config missing xml2
This commit is contained in:
parent
6288ad865c
commit
e4fd3fd52b
@ -709,6 +709,9 @@ target_link_libraries(zig LINK_PUBLIC
|
|||||||
${LLVM_LIBRARIES}
|
${LLVM_LIBRARIES}
|
||||||
${CMAKE_THREAD_LIBS_INIT}
|
${CMAKE_THREAD_LIBS_INIT}
|
||||||
)
|
)
|
||||||
|
if(APPLE)
|
||||||
|
target_link_libraries(zig LINK_PUBLIC xml2)
|
||||||
|
endif()
|
||||||
if(ZIG_DIA_GUIDS_LIB)
|
if(ZIG_DIA_GUIDS_LIB)
|
||||||
target_link_libraries(zig LINK_PUBLIC ${ZIG_DIA_GUIDS_LIB})
|
target_link_libraries(zig LINK_PUBLIC ${ZIG_DIA_GUIDS_LIB})
|
||||||
endif()
|
endif()
|
||||||
|
@ -68,6 +68,7 @@ pub fn build(b: &Builder) !void {
|
|||||||
|
|
||||||
exe.linkSystemLibrary("pthread");
|
exe.linkSystemLibrary("pthread");
|
||||||
} else if (exe.target.isDarwin()) {
|
} else if (exe.target.isDarwin()) {
|
||||||
|
exe.linkSystemLibrary("xml2");
|
||||||
exe.linkSystemLibrary("c++");
|
exe.linkSystemLibrary("c++");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user