| author | |
| committer | |
| log | 5bc4f1e3f12d8d872767e767cc298fbe293ef119 |
| tree | 0ff146cb6c7e2dda080d4bf3ec6db87cccb7bbfb |
| parent | 10fb1f2730cb2d1760233622e232b35d21d651ea |
3 files changed, 5 insertions(+), 2 deletions(-)
CMakeLists.txt+1-1| ... | @@ -709,7 +709,7 @@ target_link_libraries(zig LINK_PUBLIC | ... | @@ -709,7 +709,7 @@ target_link_libraries(zig LINK_PUBLIC |
| 709 | ${LLVM_LIBRARIES} | 709 | ${LLVM_LIBRARIES} |
| 710 | ${CMAKE_THREAD_LIBS_INIT} | 710 | ${CMAKE_THREAD_LIBS_INIT} |
| 711 | ) | 711 | ) |
| 712 | if(APPLE) | 712 | if(NOT MSVC) |
| 713 | target_link_libraries(zig LINK_PUBLIC xml2) | 713 | target_link_libraries(zig LINK_PUBLIC xml2) |
| 714 | endif() | 714 | endif() |
| 715 | if(ZIG_DIA_GUIDS_LIB) | 715 | if(ZIG_DIA_GUIDS_LIB) |
README.md+1| ... | @@ -126,6 +126,7 @@ libc. Create demo games using Zig. | ... | @@ -126,6 +126,7 @@ libc. Create demo games using Zig. |
| 126 | * cmake >= 2.8.5 | 126 | * cmake >= 2.8.5 |
| 127 | * gcc >= 5.0.0 or clang >= 3.6.0 | 127 | * gcc >= 5.0.0 or clang >= 3.6.0 |
| 128 | * LLVM, Clang, LLD development libraries == 6.x, compiled with the same gcc or clang version above | 128 | * LLVM, Clang, LLD development libraries == 6.x, compiled with the same gcc or clang version above |
| 129 | - These depend on zlib and libxml2. | ||
| 129 | 130 | ||
| 130 | ##### Windows | 131 | ##### Windows |
| 131 | 132 |
build.zig+3-1| ... | @@ -68,7 +68,6 @@ pub fn build(b: &Builder) !void { | ... | @@ -68,7 +68,6 @@ pub fn build(b: &Builder) !void { |
| 68 | 68 | ||
| 69 | exe.linkSystemLibrary("pthread"); | 69 | exe.linkSystemLibrary("pthread"); |
| 70 | } else if (exe.target.isDarwin()) { | 70 | } else if (exe.target.isDarwin()) { |
| 71 | exe.linkSystemLibrary("xml2"); | ||
| 72 | exe.linkSystemLibrary("c++"); | 71 | exe.linkSystemLibrary("c++"); |
| 73 | } | 72 | } |
| 74 | 73 | ||
| ... | @@ -76,6 +75,9 @@ pub fn build(b: &Builder) !void { | ... | @@ -76,6 +75,9 @@ pub fn build(b: &Builder) !void { |
| 76 | exe.addObjectFile(dia_guids_lib); | 75 | exe.addObjectFile(dia_guids_lib); |
| 77 | } | 76 | } |
| 78 | 77 | ||
| 78 | if (exe.target.getOs() != builtin.Os.windows) { | ||
| 79 | exe.linkSystemLibrary("xml2"); | ||
| 80 | } | ||
| 79 | exe.linkSystemLibrary("c"); | 81 | exe.linkSystemLibrary("c"); |
| 80 | 82 | ||
| 81 | b.default_step.dependOn(&exe.step); | 83 | b.default_step.dependOn(&exe.step); |