diff options
author | Jordan Rose <jordan_rose@apple.com> | 2013-07-03 16:20:29 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2013-07-03 16:20:29 +0000 |
commit | b8859f6791fb4ca16c0cb3d76bc92fbe7018cac4 (patch) | |
tree | bc2991d723fe80d333f87fab4350e9a98e1270a5 /clang/lib/FrontendTool | |
parent | 88ae7dd230dc1fd48bc8451b38611c9216eb1a45 (diff) | |
download | bcm5719-llvm-b8859f6791fb4ca16c0cb3d76bc92fbe7018cac4.tar.gz bcm5719-llvm-b8859f6791fb4ca16c0cb3d76bc92fbe7018cac4.zip |
With CLANG_ENABLE_STATIC_ANALYZER=0, link clang properly and skip clang-check.
Previously, the CMake build still tried to link clang against the static
analyzer libraries, even if CLANG_ENABLE_STATIC_ANALYZER was off.
Furthermore, clang-check depends on the analyzer, so it should be disabled
(in both CMake and configure builds).
In theory, clang-check could be made to conditionally include analyzer
support (like clang itself), but for now this at least gets a CMake ALL_BUILD
working.
Patch by Stephen Kelly, modified by me.
llvm-svn: 185548
Diffstat (limited to 'clang/lib/FrontendTool')
-rw-r--r-- | clang/lib/FrontendTool/CMakeLists.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/clang/lib/FrontendTool/CMakeLists.txt b/clang/lib/FrontendTool/CMakeLists.txt index 176511b0e4c..3e6aba441ed 100644 --- a/clang/lib/FrontendTool/CMakeLists.txt +++ b/clang/lib/FrontendTool/CMakeLists.txt @@ -14,8 +14,13 @@ target_link_libraries(clangFrontendTool clangRewriteCore clangRewriteFrontend clangCodeGen - clangStaticAnalyzerFrontend - clangStaticAnalyzerCheckers - clangStaticAnalyzerCore clangARCMigrate ) + +if(CLANG_ENABLE_STATIC_ANALYZER) + target_link_libraries(clangFrontendTool + clangStaticAnalyzerFrontend + clangStaticAnalyzerCheckers + clangStaticAnalyzerCore + ) +endif() |