mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
apparently LLVM depends on ws2_32.dll now
This commit is contained in:
parent
c71943f125
commit
62381011e0
2 changed files with 5 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue