forked from OSchip/llvm-project
Add explicit dependency on clangSerialization for a bunch of components to fix -DBUILD_SHARED_LIBS=on build
This is a more thorough fix of rC348911. The story about -DBUILD_SHARED_LIBS=on build after rC348907 (Move PCHContainerOperations from Frontend to Serialization) is: 1. libclangSerialization.so defines PCHContainerReader dtor, ... 2. clangFrontend and clangTooling define classes inheriting from PCHContainerReader, thus their DSOs have undefined references on PCHContainerReader dtor 3. Components depending on either clangFrontend or clangTooling cannot be linked unless they have explicit dependency on clangSerialization due to the default linker option -z defs. The explicit dependency could be avoided if libclang{Frontend,Tooling}.so had these undefined references. This patch adds the explicit dependency on clangSerialization to make them build. llvm-svn: 348915
This commit is contained in:
parent
9098a8b5ef
commit
5313327f61
|
@ -35,5 +35,6 @@ add_clang_library(clangTooling
|
|||
clangFrontend
|
||||
clangLex
|
||||
clangRewrite
|
||||
clangSerialization
|
||||
clangToolingCore
|
||||
)
|
||||
|
|
|
@ -12,4 +12,5 @@ target_link_libraries(arcmt-test
|
|||
clangBasic
|
||||
clangFrontend
|
||||
clangLex
|
||||
clangSerialization
|
||||
)
|
||||
|
|
|
@ -15,6 +15,7 @@ target_link_libraries(clang-check
|
|||
clangDriver
|
||||
clangFrontend
|
||||
clangRewriteFrontend
|
||||
clangSerialization
|
||||
clangStaticAnalyzerFrontend
|
||||
clangTooling
|
||||
)
|
||||
|
|
|
@ -10,6 +10,7 @@ target_link_libraries(clang-diff
|
|||
PRIVATE
|
||||
clangBasic
|
||||
clangFrontend
|
||||
clangSerialization
|
||||
clangTooling
|
||||
clangToolingASTDiff
|
||||
)
|
||||
|
|
|
@ -13,6 +13,7 @@ target_link_libraries(clang-func-mapping
|
|||
clangBasic
|
||||
clangCrossTU
|
||||
clangFrontend
|
||||
clangSerialization
|
||||
clangTooling
|
||||
)
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ set(CLANG_IMPORT_TEST_LIB_DEPS
|
|||
clangFrontend
|
||||
clangLex
|
||||
clangParse
|
||||
clangSerialization
|
||||
)
|
||||
|
||||
target_link_libraries(clang-import-test
|
||||
|
|
|
@ -16,6 +16,7 @@ target_link_libraries(clang-refactor
|
|||
clangFrontend
|
||||
clangLex
|
||||
clangRewrite
|
||||
clangSerialization
|
||||
clangTooling
|
||||
clangToolingCore
|
||||
clangToolingRefactor
|
||||
|
|
|
@ -12,6 +12,7 @@ target_link_libraries(clang-rename
|
|||
clangBasic
|
||||
clangFrontend
|
||||
clangRewrite
|
||||
clangSerialization
|
||||
clangTooling
|
||||
clangToolingCore
|
||||
clangToolingRefactor
|
||||
|
|
|
@ -46,6 +46,7 @@ target_link_libraries(clang
|
|||
clangDriver
|
||||
clangFrontend
|
||||
clangFrontendTool
|
||||
clangSerialization
|
||||
)
|
||||
|
||||
if(WIN32 AND NOT CYGWIN)
|
||||
|
|
|
@ -40,6 +40,7 @@ set(LIBS
|
|||
clangIndex
|
||||
clangLex
|
||||
clangSema
|
||||
clangSerialization
|
||||
clangTooling
|
||||
)
|
||||
|
||||
|
|
|
@ -28,5 +28,6 @@ target_link_libraries(ASTTests
|
|||
clangASTMatchers
|
||||
clangBasic
|
||||
clangFrontend
|
||||
clangSerialization
|
||||
clangTooling
|
||||
)
|
||||
|
|
|
@ -24,6 +24,7 @@ target_link_libraries(ASTMatchersTests
|
|||
clangASTMatchers
|
||||
clangBasic
|
||||
clangFrontend
|
||||
clangSerialization
|
||||
clangTooling
|
||||
)
|
||||
|
||||
|
|
|
@ -15,5 +15,6 @@ target_link_libraries(DynamicASTMatchersTests
|
|||
clangBasic
|
||||
clangDynamicASTMatchers
|
||||
clangFrontend
|
||||
clangSerialization
|
||||
clangTooling
|
||||
)
|
||||
|
|
|
@ -15,5 +15,6 @@ target_link_libraries(ClangAnalysisTests
|
|||
clangASTMatchers
|
||||
clangBasic
|
||||
clangFrontend
|
||||
clangSerialization
|
||||
clangTooling
|
||||
)
|
||||
|
|
|
@ -18,4 +18,5 @@ target_link_libraries(ClangCodeGenTests
|
|||
clangFrontend
|
||||
clangLex
|
||||
clangParse
|
||||
clangSerialization
|
||||
)
|
||||
|
|
|
@ -13,5 +13,6 @@ target_link_libraries(CrossTUTests
|
|||
clangBasic
|
||||
clangCrossTU
|
||||
clangFrontend
|
||||
clangSerialization
|
||||
clangTooling
|
||||
)
|
||||
|
|
|
@ -21,4 +21,5 @@ target_link_libraries(FrontendTests
|
|||
clangSema
|
||||
clangCodeGen
|
||||
clangFrontendTool
|
||||
clangSerialization
|
||||
)
|
||||
|
|
|
@ -14,5 +14,6 @@ target_link_libraries(IndexTests
|
|||
clangFrontend
|
||||
clangIndex
|
||||
clangLex
|
||||
clangSerialization
|
||||
clangTooling
|
||||
)
|
||||
|
|
|
@ -21,6 +21,7 @@ target_link_libraries(ClangRenameTests
|
|||
clangFormat
|
||||
clangFrontend
|
||||
clangRewrite
|
||||
clangSerialization
|
||||
clangTooling
|
||||
clangToolingCore
|
||||
clangToolingRefactor
|
||||
|
|
|
@ -14,5 +14,6 @@ target_link_libraries(SemaTests
|
|||
clangFrontend
|
||||
clangParse
|
||||
clangSema
|
||||
clangSerialization
|
||||
clangTooling
|
||||
)
|
||||
|
|
|
@ -12,6 +12,7 @@ target_link_libraries(StaticAnalysisTests
|
|||
clangBasic
|
||||
clangAnalysis
|
||||
clangFrontend
|
||||
clangSerialization
|
||||
clangStaticAnalyzerCore
|
||||
clangStaticAnalyzerFrontend
|
||||
clangTooling
|
||||
|
|
|
@ -61,6 +61,7 @@ target_link_libraries(ToolingTests
|
|||
clangFrontend
|
||||
clangLex
|
||||
clangRewrite
|
||||
clangSerialization
|
||||
clangTooling
|
||||
clangToolingCore
|
||||
clangToolingInclusions
|
||||
|
|
Loading…
Reference in New Issue