| author | |
| committer | |
| log | 62381011e0dd692ec6bb30d14e0d5e2f6ec4d5d5 |
| tree | 19e086bf89c1ce3ed6ce8cd88ca3d99ae05cf6fe |
| parent | c71943f1253a2e4f82fae84d319b8e682afa7061 |
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 | 866 | target_link_libraries(zig2 LINK_PUBLIC zigcpp) |
| 867 | 867 | |
| 868 | 868 | if(MSVC) |
| 869 | target_link_libraries(zig2 LINK_PUBLIC ntdll.lib) | |
| 869 | target_link_libraries(zig2 LINK_PUBLIC ntdll.lib ws2_32.lib) | |
| 870 | 870 | elseif(MINGW) |
| 871 | target_link_libraries(zig2 LINK_PUBLIC ntdll) | |
| 871 | target_link_libraries(zig2 LINK_PUBLIC ntdll ws2_32) | |
| 872 | 872 | endif() |
| 873 | 873 | |
| 874 | 874 | if(NOT MSVC) |
build.zig+3| ... | ... | @@ -334,6 +334,9 @@ pub fn build(b: *std.Build) !void { |
| 334 | 334 | } |
| 335 | 335 | if (target.result.os.tag == .windows) { |
| 336 | 336 | inline for (.{ exe, check_case_exe }) |artifact| { |
| 337 | // LLVM depends on networking as of version 18. | |
| 338 | artifact.linkSystemLibrary("ws2_32"); | |
| 339 | ||
| 337 | 340 | artifact.linkSystemLibrary("version"); |
| 338 | 341 | artifact.linkSystemLibrary("uuid"); |
| 339 | 342 | artifact.linkSystemLibrary("ole32"); |