]> granicus.if.org Git - llvm/commitdiff
Fix mingw build failures caused by r349839
authorTom Stellard <tstellar@redhat.com>
Sat, 22 Dec 2018 03:43:08 +0000 (03:43 +0000)
committerTom Stellard <tstellar@redhat.com>
Sat, 22 Dec 2018 03:43:08 +0000 (03:43 +0000)
Reviewers: mstorsjo

Subscribers: mgorny, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349990 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/AddLLVM.cmake

index e00e9526f6f8cdeeed5a4cebd6ff89aa53f7aad0..baf52c1fe752c80d4ddc6270d9938fff2413ab5a 100644 (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)