]> granicus.if.org Git - llvm/commitdiff
[modulemap] exclude a non-module friendly header
authorKristina Brooks <notstina@gmail.com>
Tue, 6 Aug 2019 17:16:56 +0000 (17:16 +0000)
committerKristina Brooks <notstina@gmail.com>
Tue, 6 Aug 2019 17:16:56 +0000 (17:16 +0000)
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

include/llvm/module.modulemap

index 9aae22ad118d5fcb539475d669e8760c49fbbad3..abfbd0b6810348f7dc06fb7b5c5c268464ca9f15 100644 (file)
@@ -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 * }
 }