summaryrefslogtreecommitdiff
path: root/tools/driver/Makefile
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-03-10 17:00:46 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-03-10 17:00:46 +0000
commit9c7670dee4c71de3076ccdfbe1f40a891e9d1525 (patch)
tree948c3652fb1d5cc22cbfc5c5c25da6af832c6218 /tools/driver/Makefile
parent9989dfb6402aedfbeed904f4f5ce204f01f854f8 (diff)
downloadclang-9c7670dee4c71de3076ccdfbe1f40a891e9d1525.tar.gz
clang-9c7670dee4c71de3076ccdfbe1f40a891e9d1525.tar.bz2
clang-9c7670dee4c71de3076ccdfbe1f40a891e9d1525.tar.xz
Replace CLANG_IS_PRODUCTION with CLANG_PLUGIN_SUPPORT.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203473 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/driver/Makefile')
-rw-r--r--tools/driver/Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/tools/driver/Makefile b/tools/driver/Makefile
index c12891805d..22c8c9f632 100644
--- a/tools/driver/Makefile
+++ b/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