From 207c49897813d4271a1475f7191f13b1a51d262c Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Mon, 14 Jul 2014 23:28:38 +0000 Subject: [PATCH] Revert "Revert "Move clang feature flags settings out of LLVM core and into cfe"" It turns out this commit was fine. The problem was in the legacy build system (fixed r213010). This reverts commit r213008. llvm-svn: 213014 --- clang/CMakeLists.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt index 28f4e3f..b93a78e 100644 --- a/clang/CMakeLists.txt +++ b/clang/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") -- 2.7.4