From ab11edc4b3fd5d7ab6238680af99440fbcba8e35 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sat, 22 Dec 2018 03:43:08 +0000 Subject: [PATCH] Fix mingw build failures caused by r349839 Reviewers: mstorsjo Subscribers: mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D56004 llvm-svn: 349990 --- cmake/modules/AddLLVM.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index e00e9526f6f..baf52c1fe75 100644 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -658,6 +658,10 @@ macro(add_llvm_library name) set(install_type ARCHIVE) endif() + if (ARG_MODULE) + set(install_type LIBRARY) + endif() + if(${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR NOT LLVM_DISTRIBUTION_COMPONENTS) set(export_to_llvmexports EXPORT LLVMExports)