mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-24 04:32:09 +00:00
llvm-config: Add advapi32 to --system-libs on Windows (PR36372)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@325894 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f998d9c065
commit
ae91444dd1
@ -4,7 +4,8 @@ if ( LLVM_ENABLE_ZLIB AND HAVE_LIBZ )
|
||||
endif()
|
||||
if( MSVC OR MINGW )
|
||||
# libuuid required for FOLDERID_Profile usage in lib/Support/Windows/Path.inc.
|
||||
set(system_libs ${system_libs} psapi shell32 ole32 uuid)
|
||||
# advapi32 required for CryptAcquireContextW in lib/Support/Windows/Path.inc.
|
||||
set(system_libs ${system_libs} psapi shell32 ole32 uuid advapi32)
|
||||
elseif( CMAKE_HOST_UNIX )
|
||||
if( HAVE_LIBRT )
|
||||
set(system_libs ${system_libs} rt)
|
||||
|
@ -2,6 +2,6 @@ RUN: llvm-config --link-static --system-libs 2>&1 | FileCheck %s
|
||||
REQUIRES: static-libs
|
||||
REQUIRES: system-windows
|
||||
CHECK-NOT: -l
|
||||
CHECK: psapi.lib shell32.lib ole32.lib uuid.lib
|
||||
CHECK: psapi.lib shell32.lib ole32.lib uuid.lib advapi32.lib
|
||||
CHECK-NOT: error
|
||||
CHECK-NOT: warning
|
||||
|
Loading…
x
Reference in New Issue
Block a user