[cfe-commits] r65544 - /cfe/trunk/Driver/Makefile

Chris Lattner sabre at nondot.org
Thu Feb 26 09:48:05 PST 2009


Author: lattner
Date: Thu Feb 26 11:48:04 2009
New Revision: 65544

URL: http://llvm.org/viewvc/llvm-project?rev=65544&view=rev
Log:
move this makefile goop up to the top level llvm makefile.

Modified:
    cfe/trunk/Driver/Makefile

Modified: cfe/trunk/Driver/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/Makefile?rev=65544&r1=65543&r2=65544&view=diff

==============================================================================
--- cfe/trunk/Driver/Makefile (original)
+++ cfe/trunk/Driver/Makefile Thu Feb 26 11:48:04 2009
@@ -3,21 +3,14 @@
 CPPFLAGS += -I$(PROJ_SRC_DIR)/../include
 CXXFLAGS = -fno-rtti
 
+# Clang has no plugins, optimize startup time.
+TOOL_NO_EXPORTS = 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 $(LEVEL)/Makefile.config
 
-# Optimize startup time of the app by not exporting all of the weak symbols
-# from the binary.  This reduces dyld startup time by 4x.
-ifeq ($(OS),Darwin)
-LD.Flags += -Wl,-exported_symbol -Wl,_main
-endif
-
-ifeq ($(OS), $(filter $(OS), Linux NetBSD FreeBSD))
-LD.Flags += -Wl,--version-script=Driver.map
-endif
-
 LINK_COMPONENTS := $(TARGETS_TO_BUILD) bitreader bitwriter codegen ipo selectiondag
 USEDLIBS = clangCodeGen.a clangAnalysis.a clangRewrite.a clangSema.a	\
            clangDriver.a clangAST.a clangParse.a clangLex.a		\





More information about the cfe-commits mailing list