forked from OSchip/llvm-project
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:
parent
4f17ee09f9
commit
8c49cd1b06
|
@ -16,9 +16,6 @@ set( LLVM_LINK_COMPONENTS
|
||||||
Vectorize
|
Vectorize
|
||||||
)
|
)
|
||||||
|
|
||||||
# Support plugins.
|
|
||||||
set(LLVM_NO_DEAD_STRIP 1)
|
|
||||||
|
|
||||||
add_clang_executable(clang
|
add_clang_executable(clang
|
||||||
driver.cpp
|
driver.cpp
|
||||||
cc1_main.cpp
|
cc1_main.cpp
|
||||||
|
@ -32,8 +29,13 @@ target_link_libraries(clang
|
||||||
clangFrontendTool
|
clangFrontendTool
|
||||||
)
|
)
|
||||||
|
|
||||||
|
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})
|
set_target_properties(clang PROPERTIES VERSION ${CLANG_EXECUTABLE_VERSION})
|
||||||
set_target_properties(clang PROPERTIES ENABLE_EXPORTS 1)
|
|
||||||
|
|
||||||
add_dependencies(clang clang-headers)
|
add_dependencies(clang clang-headers)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue