summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-05-06 22:26:51 +0000
committerZachary Turner <zturner@google.com>2015-05-06 22:26:51 +0000
commit6d6e947916cad2cf3b6c7eaa04794b457597b062 (patch)
tree5571be3ac7f64cdde389682fd8c70c1915744186 /llvm/lib/Support
parentc007aa41b6dac766af69998a4a161eabc9ca1ccf (diff)
downloadbcm5719-llvm-6d6e947916cad2cf3b6c7eaa04794b457597b062.tar.gz
bcm5719-llvm-6d6e947916cad2cf3b6c7eaa04794b457597b062.zip
Fix link failure on MinGW due to use of CoInitialize.
ole32 is considered a default library with MSVC, but apparently not with MinGW. Since we use CoInitialize, we need to explicitly link against it in LLVMSupport for a MinGW build. llvm-svn: 236654
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CMakeLists.txt b/llvm/lib/Support/CMakeLists.txt
index a91600fc4dd..783231d22e7 100644
--- a/llvm/lib/Support/CMakeLists.txt
+++ b/llvm/lib/Support/CMakeLists.txt
@@ -1,7 +1,7 @@
set(system_libs)
if( NOT MSVC )
if( MINGW )
- set(system_libs ${system_libs} imagehlp psapi shell32)
+ set(system_libs ${system_libs} imagehlp psapi shell32 ole32)
elseif( CMAKE_HOST_UNIX )
if( HAVE_LIBRT )
set(system_libs ${system_libs} rt)
OpenPOWER on IntegriCloud