diff options
author | Owen Anderson <resistor@mac.com> | 2016-01-22 22:07:24 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2016-01-22 22:07:24 +0000 |
commit | bb33e7b4bafa4882161c26494bb8435a21b1544d (patch) | |
tree | d632ef3e2c0156b8af9c6dcac8fc8555309bbcd8 | |
parent | 16c4e16c35a2f360b38e8c36a32a1a17ff4fcc85 (diff) | |
download | bcm5719-llvm-bb33e7b4bafa4882161c26494bb8435a21b1544d.tar.gz bcm5719-llvm-bb33e7b4bafa4882161c26494bb8435a21b1544d.zip |
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.
llvm-svn: 258566
-rw-r--r-- | llvm/cmake/modules/AddLLVM.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake index 5fd761614e9..d825c588443 100644 --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/cmake/modules/AddLLVM.cmake @@ -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() |