[llvm] r258566 - Strip local symbols when using externalized debug info.
Owen Anderson via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 22 14:07:25 PST 2016
Author: resistor
Date: Fri Jan 22 16:07:24 2016
New Revision: 258566
URL: http://llvm.org/viewvc/llvm-project?rev=258566&view=rev
Log:
Strip local symbols when using externalized debug info.
When we build LLVM with externalized debug info, all debugging and
symbolication related data is extracted into dSYM files prior to
stripping. As such, there is no need to preserve local symbols in LLVM
binaries after dSYM creation.
This shrinks libLLVM.dylib from 58MB to 55MB on my system.
Modified:
llvm/trunk/cmake/modules/AddLLVM.cmake
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=258566&r1=258565&r2=258566&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Fri Jan 22 16:07:24 2016
@@ -1191,7 +1191,7 @@ function(llvm_externalize_debuginfo name
endif()
add_custom_command(TARGET ${name} POST_BUILD
COMMAND xcrun dsymutil $<TARGET_FILE:${name}>
- COMMAND xcrun strip -Sl $<TARGET_FILE:${name}>)
+ COMMAND xcrun strip -Sxl $<TARGET_FILE:${name}>)
else()
message(FATAL_ERROR "LLVM_EXTERNALIZE_DEBUGINFO isn't implemented for non-darwin platforms!")
endif()
More information about the llvm-commits
mailing list