Add an option to disable plugins in clang.

An option with the same name already exists in the makefile build.

llvm-svn: 203320
This commit is contained in:
Rafael Espindola 2014-03-08 00:33:15 +00:00
parent 4f17ee09f9
commit 8c49cd1b06
1 changed files with 6 additions and 4 deletions

View File

@ -16,9 +16,6 @@ set( LLVM_LINK_COMPONENTS
Vectorize
)
# Support plugins.
set(LLVM_NO_DEAD_STRIP 1)
add_clang_executable(clang
driver.cpp
cc1_main.cpp
@ -32,8 +29,13 @@ target_link_libraries(clang
clangFrontendTool
)
set_target_properties(clang PROPERTIES VERSION ${CLANG_EXECUTABLE_VERSION})
if(NOT CLANG_IS_PRODUCTION)
# Support plugins.
set(LLVM_NO_DEAD_STRIP 1)
set_target_properties(clang PROPERTIES ENABLE_EXPORTS 1)
endif()
set_target_properties(clang PROPERTIES VERSION ${CLANG_EXECUTABLE_VERSION})
add_dependencies(clang clang-headers)