Skip to content
Snippets Groups Projects
Commit a8a6d063 authored by Alp Toker's avatar Alp Toker
Browse files

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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213014 91177308-0d34-0410-b5e6-96231b3b80d8
parent 654728df
No related branches found
No related tags found
No related merge requests found
...@@ -385,8 +385,25 @@ install(DIRECTORY include/clang-c ...@@ -385,8 +385,25 @@ install(DIRECTORY include/clang-c
add_definitions( -D_GNU_SOURCE ) add_definitions( -D_GNU_SOURCE )
option(CLANG_ENABLE_ARCMT "Build ARCMT." ON) 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) 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) 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) if (NOT CLANG_ENABLE_REWRITER AND CLANG_ENABLE_ARCMT)
message(FATAL_ERROR "Cannot disable rewriter while enabling ARCMT") message(FATAL_ERROR "Cannot disable rewriter while enabling ARCMT")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment