r203320 - Add an option to disable plugins in clang.

Rafael Espindola rafael.espindola at gmail.com
Fri Mar 7 16:33:16 PST 2014


Author: rafael
Date: Fri Mar  7 18:33:15 2014
New Revision: 203320

URL: http://llvm.org/viewvc/llvm-project?rev=203320&view=rev
Log:
Add an option to disable plugins in clang.

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

Modified:
    cfe/trunk/tools/driver/CMakeLists.txt

Modified: cfe/trunk/tools/driver/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/CMakeLists.txt?rev=203320&r1=203319&r2=203320&view=diff
==============================================================================
--- cfe/trunk/tools/driver/CMakeLists.txt (original)
+++ cfe/trunk/tools/driver/CMakeLists.txt Fri Mar  7 18:33:15 2014
@@ -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)
 





More information about the cfe-commits mailing list