From: Kristina Brooks Date: Tue, 6 Aug 2019 17:16:56 +0000 (+0000) Subject: [modulemap] exclude a non-module friendly header X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa1587397e6e9c2dfda3bb8165f61a779afb21c8;p=llvm [modulemap] exclude a non-module friendly header Exclude Attributor.h from LLVM_Transforms to avoid a link failure when building modular LLVM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368064 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/module.modulemap b/include/llvm/module.modulemap index 9aae22ad118..abfbd0b6810 100644 --- a/include/llvm/module.modulemap +++ b/include/llvm/module.modulemap @@ -332,6 +332,12 @@ module LLVM_TableGen { module LLVM_Transforms { requires cplusplus umbrella "Transforms" + + // FIXME: This is far from a perfect solution but at the moment this header + // is difficult to modularize and would require splitting it up. Exclude it + // completely to avoid a link failure with modular builds. + exclude header "Transforms/IPO/Attributor.h" + module * { export * } }