authorgravatar for andrea@orru.ioAndrea Orru <andrea@orru.io> 2018-03-10 16:59:53-08:00
committergravatar for andrea@orru.ioAndrea Orru <andrea@orru.io> 2018-03-10 16:59:53-08:00
logc18059a3ddcaec1bef18180ec797fe41baeac7f3
tree11b2fbf16818e2b857c546a40df74b24a20a1b4b
parentd0621391bc8acccfa214dfeac0d5be2f90c1ab8e
parent5bc4f1e3f12d8d872767e767cc298fbe293ef119

Merge branch 'master' of https://github.com/zig-lang/zig


3 files changed, 5 insertions(+), 2 deletions(-)

CMakeLists.txt+1-1
......@@ -709,7 +709,7 @@ target_link_libraries(zig LINK_PUBLIC
709709 ${LLVM_LIBRARIES}
710710 ${CMAKE_THREAD_LIBS_INIT}
711711)
712if(APPLE)
712if(NOT MSVC)
713713 target_link_libraries(zig LINK_PUBLIC xml2)
714714endif()
715715if(ZIG_DIA_GUIDS_LIB)
README.md+1
......@@ -126,6 +126,7 @@ libc. Create demo games using Zig.
126126 * cmake >= 2.8.5
127127 * gcc >= 5.0.0 or clang >= 3.6.0
128128 * LLVM, Clang, LLD development libraries == 6.x, compiled with the same gcc or clang version above
129 - These depend on zlib and libxml2.
129130
130131##### Windows
131132
build.zig+3-1
......@@ -68,7 +68,6 @@ pub fn build(b: &Builder) !void {
6868
6969 exe.linkSystemLibrary("pthread");
7070 } else if (exe.target.isDarwin()) {
71 exe.linkSystemLibrary("xml2");
7271 exe.linkSystemLibrary("c++");
7372 }
7473
......@@ -76,6 +75,9 @@ pub fn build(b: &Builder) !void {
7675 exe.addObjectFile(dia_guids_lib);
7776 }
7877
78 if (exe.target.getOs() != builtin.Os.windows) {
79 exe.linkSystemLibrary("xml2");
80 }
7981 exe.linkSystemLibrary("c");
8082
8183 b.default_step.dependOn(&exe.step);