[llvm-commits] [llvm] r107112 - /llvm/trunk/utils/buildit/build_llvm
Bill Wendling
isanbard at gmail.com
Mon Jun 28 18:08:58 PDT 2010
Author: void
Date: Mon Jun 28 20:08:57 2010
New Revision: 107112
URL: http://llvm.org/viewvc/llvm-project?rev=107112&view=rev
Log:
Strip resulting binaries.
Modified:
llvm/trunk/utils/buildit/build_llvm
Modified: llvm/trunk/utils/buildit/build_llvm
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/buildit/build_llvm?rev=107112&r1=107111&r2=107112&view=diff
==============================================================================
--- llvm/trunk/utils/buildit/build_llvm (original)
+++ llvm/trunk/utils/buildit/build_llvm Mon Jun 28 20:08:57 2010
@@ -331,8 +331,15 @@
# Remove debugging information from DEST_DIR.
cd $DIR || exit 1
+
find $DEST_DIR -name \*.a -print | xargs ranlib || exit 1
find $DEST_DIR -name \*.dSYM -print | xargs rm -r || exit 1
+
+# Strip debugging information from files
+find $DEST_DIR -perm -0111 -type f \
+ ! \( -name '*.la' -o -name gccas -o -name gccld -o -name llvm-config \) \
+ -print | xargs -n 1 -P ${SYSCTL} strip -S
+
chgrp -h -R wheel $DEST_DIR
chgrp -R wheel $DEST_DIR
More information about the llvm-commits
mailing list