Index: tools/clang-format/CMakeLists.txt
===================================================================
--- tools/clang-format/CMakeLists.txt	(revision 198062)
+++ tools/clang-format/CMakeLists.txt	(working copy)
@@ -12,6 +12,10 @@
   clangTooling
   )
 
+if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+  set(CMAKE_EXE_LINKER_FLAGS "-Wl,-dead_strip")
+endif()
+
 install(TARGETS clang-format RUNTIME DESTINATION bin)
 install(PROGRAMS clang-format-bbedit.applescript DESTINATION share/clang)
 install(PROGRAMS clang-format-diff.py DESTINATION share/clang)
Index: tools/clang-format/Makefile
===================================================================
--- tools/clang-format/Makefile	(revision 198062)
+++ tools/clang-format/Makefile	(working copy)
@@ -22,3 +22,8 @@
            clangLex.a clangBasic.a 
 
 include $(CLANG_LEVEL)/Makefile
+
+# Strip dead symbols.
+ifeq ($(HOST_OS),Darwin)
+    LLVMLibsOptions += -Wl,-dead_strip
+endif
