From 8c49cd1b065bd87a70f3a4c6742bcbd3847286fb Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 8 Mar 2014 00:33:15 +0000 Subject: [PATCH] Add an option to disable plugins in clang. An option with the same name already exists in the makefile build. llvm-svn: 203320 --- clang/tools/driver/CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/clang/tools/driver/CMakeLists.txt b/clang/tools/driver/CMakeLists.txt index 289de3d0fafe..4a7b62a0b2bb 100644 --- a/clang/tools/driver/CMakeLists.txt +++ b/clang/tools/driver/CMakeLists.txt @@ -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 ) +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 ENABLE_EXPORTS 1) add_dependencies(clang clang-headers)