forked from OSchip/llvm-project
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. llvm-svn: 342827
This commit is contained in:
parent
81f67f7afb
commit
91cef98d2c
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue