authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-04-29 16:57:40-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-05-08 19:37:29-07:00
log62381011e0dd692ec6bb30d14e0d5e2f6ec4d5d5
tree19e086bf89c1ce3ed6ce8cd88ca3d99ae05cf6fe
parentc71943f1253a2e4f82fae84d319b8e682afa7061

apparently LLVM depends on ws2_32.dll now


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

CMakeLists.txt+2-2
...@@ -866,9 +866,9 @@ target_include_directories(zig2 PUBLIC "${CMAKE_SOURCE_DIR}/stage1")...@@ -866,9 +866,9 @@ target_include_directories(zig2 PUBLIC "${CMAKE_SOURCE_DIR}/stage1")
866target_link_libraries(zig2 LINK_PUBLIC zigcpp)866target_link_libraries(zig2 LINK_PUBLIC zigcpp)
867867
868if(MSVC)868if(MSVC)
869 target_link_libraries(zig2 LINK_PUBLIC ntdll.lib)869 target_link_libraries(zig2 LINK_PUBLIC ntdll.lib ws2_32.lib)
870elseif(MINGW)870elseif(MINGW)
871 target_link_libraries(zig2 LINK_PUBLIC ntdll)871 target_link_libraries(zig2 LINK_PUBLIC ntdll ws2_32)
872endif()872endif()
873873
874if(NOT MSVC)874if(NOT MSVC)
build.zig+3
...@@ -334,6 +334,9 @@ pub fn build(b: *std.Build) !void {...@@ -334,6 +334,9 @@ pub fn build(b: *std.Build) !void {
334 }334 }
335 if (target.result.os.tag == .windows) {335 if (target.result.os.tag == .windows) {
336 inline for (.{ exe, check_case_exe }) |artifact| {336 inline for (.{ exe, check_case_exe }) |artifact| {
337 // LLVM depends on networking as of version 18.
338 artifact.linkSystemLibrary("ws2_32");
339
337 artifact.linkSystemLibrary("version");340 artifact.linkSystemLibrary("version");
338 artifact.linkSystemLibrary("uuid");341 artifact.linkSystemLibrary("uuid");
339 artifact.linkSystemLibrary("ole32");342 artifact.linkSystemLibrary("ole32");