summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2018-02-23 12:20:26 +0000
committerHans Wennborg <hans@hanshq.net>2018-02-23 12:20:26 +0000
commit35d6e944e1ea6124bf9cddba7fe58bf246ff23ab (patch)
treec2ca962e34614a100e82c1f25ed2a9b83685b419 /llvm/lib/Support
parent8d71fdc2629dd0a89def2a963fd37d5a64bd7261 (diff)
downloadbcm5719-llvm-35d6e944e1ea6124bf9cddba7fe58bf246ff23ab.tar.gz
bcm5719-llvm-35d6e944e1ea6124bf9cddba7fe58bf246ff23ab.zip
llvm-config: Add advapi32 to --system-libs on Windows (PR36372)
llvm-svn: 325894
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/CMakeLists.txt b/llvm/lib/Support/CMakeLists.txt
index 7c47240152e..9d4db16321d 100644
--- a/llvm/lib/Support/CMakeLists.txt
+++ b/llvm/lib/Support/CMakeLists.txt
@@ -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)
OpenPOWER on IntegriCloud