Skip to content
Snippets Groups Projects
Commit dee928ea authored by Rafael Espindola's avatar Rafael Espindola
Browse files

Add an option to disable plugins in clang.

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

The name CLANG_IS_PRODUCTION is historical. We should probably change it, but
should change the configure build at the same time.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203325 91177308-0d34-0410-b5e6-96231b3b80d8
parent a82e0ce2
No related branches found
No related tags found
No related merge requests found
...@@ -16,8 +16,13 @@ set( LLVM_LINK_COMPONENTS ...@@ -16,8 +16,13 @@ set( LLVM_LINK_COMPONENTS
Vectorize Vectorize
) )
# Support plugins. option(CLANG_IS_PRODUCTION "Build clang without plugin support" OFF)
set(LLVM_NO_DEAD_STRIP 1)
# Support plugins. This must be before add_clang_executable as it reads
# LLVM_NO_DEAD_STRIP.
if(NOT CLANG_IS_PRODUCTION)
set(LLVM_NO_DEAD_STRIP 1)
endif()
add_clang_executable(clang add_clang_executable(clang
driver.cpp driver.cpp
...@@ -33,7 +38,11 @@ target_link_libraries(clang ...@@ -33,7 +38,11 @@ target_link_libraries(clang
) )
set_target_properties(clang PROPERTIES VERSION ${CLANG_EXECUTABLE_VERSION}) set_target_properties(clang PROPERTIES VERSION ${CLANG_EXECUTABLE_VERSION})
set_target_properties(clang PROPERTIES ENABLE_EXPORTS 1)
# Support plugins.
if(NOT CLANG_IS_PRODUCTION)
set_target_properties(clang PROPERTIES ENABLE_EXPORTS 1)
endif()
add_dependencies(clang clang-headers) add_dependencies(clang clang-headers)
......
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