diff options
author | Eric Fiselier <eric@efcs.ca> | 2018-09-23 00:48:05 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2018-09-23 00:48:05 +0000 |
commit | c90c4215d7ae5fb247859f7ba1d5eb2c0888a768 (patch) | |
tree | c281724582129c8a6661385f7c7445a3a9c517a9 /include/clang/module.modulemap | |
parent | 6a7c82519b5d21fc610d7e52ce333a89006943c5 (diff) |
Fix modules build with shared library.
r341994 caused clangAnalysis to pull all of the AST matchers
library into clang. Due to inline key functions in the headers,
importing the AST matchers library gives a link dependency on the
AST matchers (and thus the AST), which clang should not
have.
This patch works around the issues by excluding the offending
libclangAnalysis header in the modulemap.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342827 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/module.modulemap')
-rw-r--r-- | include/clang/module.modulemap | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/module.modulemap b/include/clang/module.modulemap index 8d525c5ffb..4cf5cd44bf 100644 --- a/include/clang/module.modulemap +++ b/include/clang/module.modulemap @@ -5,6 +5,12 @@ module Clang_Analysis { textual header "Analysis/Analyses/ThreadSafetyOps.def" module * { export * } + + // FIXME: Exclude these headers to avoid pulling all of the AST matchers + // library into clang. Due to inline key functions in the headers, + // importing the AST matchers library gives a link dependency on the AST + // matchers (and thus the AST), which clang-format should not have. + exclude header "Analysis/Analyses/ExprMutationAnalyzer.h" } module Clang_AST { |