diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-07-18 08:55:03 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-07-18 08:55:03 +0000 |
commit | ae9459cceb59b4f1f440dfaf07122c437ccd2d2a (patch) | |
tree | 361a9b4c9a6d2fe10b6fbe1023e1ca7cf8dfc8e6 /CMakeLists.txt | |
parent | 906b61f528d9cba41ed36193916675e38d1c3310 (diff) | |
download | clang-ae9459cceb59b4f1f440dfaf07122c437ccd2d2a.tar.gz |
[CMake] Move CLANG_ENABLE_(ARCMT|OBJC_REWRITER|STATIC_ANALYZER) into clang/Config/config.h.
LLVM_ENABLE_MODULES is sensitive of -D. Move them into config.h.
FIXME: It'd be better that they are #cmakedefine01 rather than #cmakedefine.
(#if FOO rather than #if defined(FOO))
Then we can find missing #include "clang/Config/config.h" in the future.
Differential Revision: https://reviews.llvm.org/D35527
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308277 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c163a2b504..2667b1d689 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -389,11 +389,7 @@ if(CLANG_ANALYZER_BUILD_Z3) endif() if(CLANG_ENABLE_ARCMT) - add_definitions(-DCLANG_ENABLE_ARCMT) - add_definitions(-DCLANG_ENABLE_OBJC_REWRITER) -endif() -if(CLANG_ENABLE_STATIC_ANALYZER) - add_definitions(-DCLANG_ENABLE_STATIC_ANALYZER) + set(CLANG_ENABLE_OBJC_REWRITER ON) endif() # Clang version information |