Skip to content

Commit 042a2e8

Browse files
committed
[Support] Fix WS2_32 casing
The file name is WS2_32.Lib in all the Windows SDK versions I looked at. You can get away with the incorrect casing on a case-insensitive file system but it can matter for cross-compilation.
1 parent c60663d commit 042a2e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Support/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ endif()
4040
if( MSVC OR MINGW )
4141
# libuuid required for FOLDERID_Profile usage in lib/Support/Windows/Path.inc.
4242
# advapi32 required for CryptAcquireContextW in lib/Support/Windows/Path.inc.
43-
set(system_libs ${system_libs} psapi shell32 ole32 uuid advapi32 Ws2_32)
43+
set(system_libs ${system_libs} psapi shell32 ole32 uuid advapi32 WS2_32)
4444
elseif( CMAKE_HOST_UNIX )
4545
if( HAVE_LIBRT )
4646
set(system_libs ${system_libs} rt)

llvm/test/tools/llvm-config/system-libs.windows.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ RUN: llvm-config --link-static --system-libs Support 2>&1 | FileCheck %s
22
REQUIRES: static-libs
33
REQUIRES: host={{.*-windows-msvc}}
44
CHECK-NOT: -l
5-
CHECK: psapi.lib shell32.lib ole32.lib uuid.lib advapi32.lib Ws2_32.lib{{$}}
5+
CHECK: psapi.lib shell32.lib ole32.lib uuid.lib advapi32.lib WS2_32.lib{{$}}
66
CHECK-NOT: error
77
CHECK-NOT: warning

0 commit comments

Comments
 (0)