[llvm] r368064 - [modulemap] exclude a non-module friendly header
Kristina Brooks via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 6 10:16:56 PDT 2019
Author: kristina
Date: Tue Aug 6 10:16:56 2019
New Revision: 368064
URL: http://llvm.org/viewvc/llvm-project?rev=368064&view=rev
Log:
[modulemap] exclude a non-module friendly header
Exclude Attributor.h from LLVM_Transforms to avoid
a link failure when building modular LLVM.
Modified:
llvm/trunk/include/llvm/module.modulemap
Modified: llvm/trunk/include/llvm/module.modulemap
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/module.modulemap?rev=368064&r1=368063&r2=368064&view=diff
==============================================================================
--- llvm/trunk/include/llvm/module.modulemap (original)
+++ llvm/trunk/include/llvm/module.modulemap Tue Aug 6 10:16:56 2019
@@ -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 * }
}
More information about the llvm-commits
mailing list