Fix mingw build failures caused by r349839

Reviewers: mstorsjo

Subscribers: mgorny, llvm-commits

Differential Revision: https://reviews.llvm.org/D56004

llvm-svn: 349990
This commit is contained in:
Tom Stellard 2018-12-22 03:43:08 +00:00
parent 4749a3ffb2
commit 7dca9bbef7
1 changed files with 4 additions and 0 deletions

View File

@ -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)