diff options
| author | Andrea Orru <andrea@orru.io> | 2018-03-10 16:59:53 -0800 |
|---|---|---|
| committer | Andrea Orru <andrea@orru.io> | 2018-03-10 16:59:53 -0800 |
| commit | c18059a3ddcaec1bef18180ec797fe41baeac7f3 (patch) | |
| tree | 11b2fbf16818e2b857c546a40df74b24a20a1b4b | |
| parent | d0621391bc8acccfa214dfeac0d5be2f90c1ab8e (diff) | |
| parent | 5bc4f1e3f12d8d872767e767cc298fbe293ef119 (diff) | |
| download | zig-c18059a3ddcaec1bef18180ec797fe41baeac7f3.tar.gz zig-c18059a3ddcaec1bef18180ec797fe41baeac7f3.zip | |
Merge branch 'master' of https://github.com/zig-lang/zig
| -rw-r--r-- | CMakeLists.txt | 2 | ||||
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | build.zig | 4 |
3 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f634f17ac..8c74a71a8d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -709,7 +709,7 @@ target_link_libraries(zig LINK_PUBLIC ${LLVM_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ) -if(APPLE) +if(NOT MSVC) target_link_libraries(zig LINK_PUBLIC xml2) endif() if(ZIG_DIA_GUIDS_LIB) @@ -126,6 +126,7 @@ libc. Create demo games using Zig. * cmake >= 2.8.5 * gcc >= 5.0.0 or clang >= 3.6.0 * LLVM, Clang, LLD development libraries == 6.x, compiled with the same gcc or clang version above + - These depend on zlib and libxml2. ##### Windows @@ -68,7 +68,6 @@ pub fn build(b: &Builder) !void { exe.linkSystemLibrary("pthread"); } else if (exe.target.isDarwin()) { - exe.linkSystemLibrary("xml2"); exe.linkSystemLibrary("c++"); } @@ -76,6 +75,9 @@ pub fn build(b: &Builder) !void { exe.addObjectFile(dia_guids_lib); } + if (exe.target.getOs() != builtin.Os.windows) { + exe.linkSystemLibrary("xml2"); + } exe.linkSystemLibrary("c"); b.default_step.dependOn(&exe.step); |
