summaryrefslogtreecommitdiff
path: root/unittests/StaticAnalyzer
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-12-12 08:02:18 +0000
committerFangrui Song <maskray@google.com>2018-12-12 08:02:18 +0000
commit4491cc3917797998d3feecba6d7752f0e9f32e89 (patch)
treeb64a3dbd0b20fcc2273e9626c9e599760ce5baa4 /unittests/StaticAnalyzer
parentd8e58a766c9648d10433b8f9e157f981c74cf89b (diff)
downloadclang-4491cc3917797998d3feecba6d7752f0e9f32e89.tar.gz
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@348915 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/StaticAnalyzer')
-rw-r--r--unittests/StaticAnalyzer/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/StaticAnalyzer/CMakeLists.txt b/unittests/StaticAnalyzer/CMakeLists.txt
index ff041452df..3036dec167 100644
--- a/unittests/StaticAnalyzer/CMakeLists.txt
+++ b/unittests/StaticAnalyzer/CMakeLists.txt
@@ -12,6 +12,7 @@ target_link_libraries(StaticAnalysisTests
clangBasic
clangAnalysis
clangFrontend
+ clangSerialization
clangStaticAnalyzerCore
clangStaticAnalyzerFrontend
clangTooling