apparently LLVM depends on ws2_32.dll now

This commit is contained in:
Andrew Kelley 2024-04-29 16:57:40 -07:00
parent c71943f125
commit 62381011e0
2 changed files with 5 additions and 2 deletions

View file

@ -866,9 +866,9 @@ target_include_directories(zig2 PUBLIC "${CMAKE_SOURCE_DIR}/stage1")
target_link_libraries(zig2 LINK_PUBLIC zigcpp)
if(MSVC)
target_link_libraries(zig2 LINK_PUBLIC ntdll.lib)
target_link_libraries(zig2 LINK_PUBLIC ntdll.lib ws2_32.lib)
elseif(MINGW)
target_link_libraries(zig2 LINK_PUBLIC ntdll)
target_link_libraries(zig2 LINK_PUBLIC ntdll ws2_32)
endif()
if(NOT MSVC)

View file

@ -334,6 +334,9 @@ pub fn build(b: *std.Build) !void {
}
if (target.result.os.tag == .windows) {
inline for (.{ exe, check_case_exe }) |artifact| {
// LLVM depends on networking as of version 18.
artifact.linkSystemLibrary("ws2_32");
artifact.linkSystemLibrary("version");
artifact.linkSystemLibrary("uuid");
artifact.linkSystemLibrary("ole32");