Author: ddunbar
Date: Fri Sep 10 16:42:03 2010
New Revision: 113638

URL: http://llvm.org/viewvc/llvm-project?rev=113638&view=rev
Log:
Driver: Set TOOL_NO_EXPORTS when building a "production" compiler, we don't
currently expect that to be useful for plugins, and this is important for
startup performance:
--
ddun...@lordcrumb:tmp$ touch empty.c
ddun...@lordcrumb:tmp$ runN 100 ~/llvm.obj.64/Release/bin/clang -c empty.c
name      avg     min     med     max      SD    total 
user     0.0054  0.0052  0.0054  0.0055  0.0000  0.5350
 sys     0.0084  0.0090  0.0078  0.0087  0.0008  0.8390
wall     0.0149  0.0149  0.0149  0.0149  0.0003  1.4943
ddun...@lordcrumb:tmp$ runN 100 ~/llvm.obj.64/Release/bin/clang -c empty.c
name      avg     min     med     max      SD    total 
user     0.0036  0.0036  0.0036  0.0038  0.0000  0.3646
 sys     0.0072  0.0071  0.0068  0.0070  0.0006  0.7158
wall     0.0123  0.0123  0.0122  0.0136  0.0003  1.2262
--

Modified:
    cfe/trunk/tools/driver/Makefile

Modified: cfe/trunk/tools/driver/Makefile
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/Makefile?rev=113638&r1=113637&r2=113638&view=diff
==============================================================================
--- cfe/trunk/tools/driver/Makefile (original)
+++ cfe/trunk/tools/driver/Makefile Fri Sep 10 16:42:03 2010
@@ -17,6 +17,12 @@
   endif
 endif
 
+# 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
+
 # Include tool version information on OS X.
 TOOL_INFO_PLIST := Info.plist
 


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to