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")
866866target_link_libraries(zig2 LINK_PUBLIC zigcpp)
867867
868868if(MSVC)
869 target_link_libraries(zig2 LINK_PUBLIC ntdll.lib)
869 target_link_libraries(zig2 LINK_PUBLIC ntdll.lib ws2_32.lib)
870870elseif(MINGW)
871 target_link_libraries(zig2 LINK_PUBLIC ntdll)
871 target_link_libraries(zig2 LINK_PUBLIC ntdll ws2_32)
872872endif()
873873
874874if(NOT MSVC)
build.zig+3
......@@ -334,6 +334,9 @@ pub fn build(b: *std.Build) !void {
334334 }
335335 if (target.result.os.tag == .windows) {
336336 inline for (.{ exe, check_case_exe }) |artifact| {
337 // LLVM depends on networking as of version 18.
338 artifact.linkSystemLibrary("ws2_32");
339
337340 artifact.linkSystemLibrary("version");
338341 artifact.linkSystemLibrary("uuid");
339342 artifact.linkSystemLibrary("ole32");