diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-09-10 21:42:03 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-09-10 21:42:03 +0000 |
commit | b08fab82a68f6c1588ecd12ae2c6399cc5ea662d (patch) | |
tree | 3ff140f706dffcae26db250e34384ee347756630 | |
parent | c8aecc2dfb2e393d9eeaedeca22ff8cd7149af81 (diff) |
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:
--
ddunbar@lordcrumb:tmp$ touch empty.c
ddunbar@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
ddunbar@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
--
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113638 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/driver/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/driver/Makefile b/tools/driver/Makefile index 447f0e4eb0..0f5d962c22 100644 --- a/tools/driver/Makefile +++ b/tools/driver/Makefile @@ -17,6 +17,12 @@ else 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 |