diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-03-10 17:00:46 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-03-10 17:00:46 +0000 |
| commit | a7a94d10eaf571470868c65d232bf9c7c8621285 (patch) | |
| tree | 9907fe96267684fdae35a2e70c316900a7143c83 /clang/tools | |
| parent | 47492919c683c3799b13283021de0abb0ca822d3 (diff) | |
| download | bcm5719-llvm-a7a94d10eaf571470868c65d232bf9c7c8621285.tar.gz bcm5719-llvm-a7a94d10eaf571470868c65d232bf9c7c8621285.zip | |
Replace CLANG_IS_PRODUCTION with CLANG_PLUGIN_SUPPORT.
llvm-svn: 203473
Diffstat (limited to 'clang/tools')
| -rw-r--r-- | clang/tools/driver/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | clang/tools/driver/Makefile | 17 |
2 files changed, 11 insertions, 12 deletions
diff --git a/clang/tools/driver/CMakeLists.txt b/clang/tools/driver/CMakeLists.txt index c003df84862..9442ba65da9 100644 --- a/clang/tools/driver/CMakeLists.txt +++ b/clang/tools/driver/CMakeLists.txt @@ -16,11 +16,11 @@ set( LLVM_LINK_COMPONENTS Vectorize ) -option(CLANG_IS_PRODUCTION "Build clang without plugin support" OFF) +option(CLANG_PLUGIN_SUPPORT "Build clang with plugin support" ON) # Support plugins. This must be before add_clang_executable as it reads # LLVM_NO_DEAD_STRIP. -if(NOT CLANG_IS_PRODUCTION) +if(CLANG_PLUGIN_SUPPORT) set(LLVM_NO_DEAD_STRIP 1) endif() @@ -40,7 +40,7 @@ target_link_libraries(clang set_target_properties(clang PROPERTIES VERSION ${CLANG_EXECUTABLE_VERSION}) # Support plugins. -if(NOT CLANG_IS_PRODUCTION) +if(CLANG_PLUGIN_SUPPORT) set_target_properties(clang PROPERTIES ENABLE_EXPORTS 1) endif() diff --git a/clang/tools/driver/Makefile b/clang/tools/driver/Makefile index c12891805d2..22c8c9f6329 100644 --- a/clang/tools/driver/Makefile +++ b/clang/tools/driver/Makefile @@ -11,12 +11,6 @@ CLANG_LEVEL := ../.. TOOLNAME = clang TOOLALIAS = clang++ -# We don't currently expect production Clang builds to be interested in -# plugins. This is important for startup performance. -ifdef CLANG_IS_PRODUCTION -TOOL_NO_EXPORTS := 1 -endif - ifdef CLANG_ORDER_FILE TOOL_ORDER_FILE := $(CLANG_ORDER_FILE) endif @@ -24,14 +18,19 @@ endif # Include tool version information on OS X. TOOL_INFO_PLIST := Info.plist -# Support plugins. -NO_DEAD_STRIP := 1 - # Include this here so we can get the configuration of the targets that have # been configured for construction. We have to do this early so we can set up # LINK_COMPONENTS before including Makefile.rules include $(CLANG_LEVEL)/../../Makefile.config +# Have the option of not supporting plugins. This is important for startup +# performance. +ifeq ($(CLANG_PLUGIN_SUPPORT), 1) +NO_DEAD_STRIP := 1 +else +TOOL_NO_EXPORTS := 1 +endif + LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader bitwriter codegen \ instrumentation ipo irreader linker objcarcopts option \ selectiondag |

