CI: link ws2_32.lib on Windows

This commit is contained in:
Andrew Kelley 2025-10-28 09:27:04 -07:00
parent 6f64c8b693
commit 9f986419bd
2 changed files with 2 additions and 2 deletions

View file

@ -95,7 +95,7 @@ Enter-VsDevShell -VsInstallPath "C:\Program Files (x86)\Microsoft Visual Studio\
CheckLastExitCode CheckLastExitCode
Write-Output "Build and run behavior tests with msvc..." Write-Output "Build and run behavior tests with msvc..."
& cl.exe -I..\lib test-x86_64-windows-msvc.c compiler_rt-x86_64-windows-msvc.c /W3 /Z7 -link -nologo -debug -subsystem:console kernel32.lib ntdll.lib libcmt.lib & cl.exe -I..\lib test-x86_64-windows-msvc.c compiler_rt-x86_64-windows-msvc.c /W3 /Z7 -link -nologo -debug -subsystem:console kernel32.lib ntdll.lib libcmt.lib ws2_32.lib
CheckLastExitCode CheckLastExitCode
& .\test-x86_64-windows-msvc.exe & .\test-x86_64-windows-msvc.exe

View file

@ -113,7 +113,7 @@ Enter-VsDevShell -VsInstallPath "C:\Program Files (x86)\Microsoft Visual Studio\
CheckLastExitCode CheckLastExitCode
Write-Output "Build and run behavior tests with msvc..." Write-Output "Build and run behavior tests with msvc..."
& cl.exe -I..\lib test-x86_64-windows-msvc.c compiler_rt-x86_64-windows-msvc.c /W3 /Z7 -link -nologo -debug -subsystem:console kernel32.lib ntdll.lib libcmt.lib & cl.exe -I..\lib test-x86_64-windows-msvc.c compiler_rt-x86_64-windows-msvc.c /W3 /Z7 -link -nologo -debug -subsystem:console kernel32.lib ntdll.lib libcmt.lib ws2_32.lib
CheckLastExitCode CheckLastExitCode
& .\test-x86_64-windows-msvc.exe & .\test-x86_64-windows-msvc.exe