From: Alp Toker Date: Mon, 14 Jul 2014 22:17:26 +0000 (+0000) Subject: Move clang feature flags settings out of LLVM core and into cfe X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46531548410c3ea07eb1396f930f9d5505952bae;p=clang Move clang feature flags settings out of LLVM core and into cfe git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212997 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 28f4e3fb81..b93a78ec01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -385,8 +385,25 @@ install(DIRECTORY include/clang-c add_definitions( -D_GNU_SOURCE ) option(CLANG_ENABLE_ARCMT "Build ARCMT." ON) +if (CLANG_ENABLE_ARCMT) + set(ENABLE_CLANG_ARCMT "1") +else() + set(ENABLE_CLANG_ARCMT "0") +endif() + option(CLANG_ENABLE_REWRITER "Build rewriter." ON) +if (CLANG_ENABLE_REWRITER) + set(ENABLE_CLANG_REWRITER "1") +else() + set(ENABLE_CLANG_REWRITER "0") +endif() + option(CLANG_ENABLE_STATIC_ANALYZER "Build static analyzer." ON) +if (CLANG_ENABLE_STATIC_ANALYZER) + set(ENABLE_CLANG_STATIC_ANALYZER "1") +else() + set(ENABLE_CLANG_STATIC_ANALYZER "0") +endif() if (NOT CLANG_ENABLE_REWRITER AND CLANG_ENABLE_ARCMT) message(FATAL_ERROR "Cannot disable rewriter while enabling ARCMT")