r212997 - Move clang feature flags settings out of LLVM core and into cfe

Alp Toker alp at nuanti.com
Mon Jul 14 15:17:26 PDT 2014


Author: alp
Date: Mon Jul 14 17:17:26 2014
New Revision: 212997

URL: http://llvm.org/viewvc/llvm-project?rev=212997&view=rev
Log:
Move clang feature flags settings out of LLVM core and into cfe

Modified:
    cfe/trunk/CMakeLists.txt

Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=212997&r1=212996&r2=212997&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Mon Jul 14 17:17:26 2014
@@ -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")





More information about the cfe-commits mailing list