summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-06-29 01:08:57 +0000
committerBill Wendling <isanbard@gmail.com>2010-06-29 01:08:57 +0000
commit0a1bd2abf6d2ef526965977d6f069b6370095913 (patch)
tree8f55f64ab0185142a76003eccbdea093c5299fba /utils
parent8eab75f390eb469fea16a290dcd841365007a9a6 (diff)
downloadllvm-0a1bd2abf6d2ef526965977d6f069b6370095913.tar.gz
llvm-0a1bd2abf6d2ef526965977d6f069b6370095913.tar.bz2
llvm-0a1bd2abf6d2ef526965977d6f069b6370095913.tar.xz
Strip resulting binaries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107112 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-xutils/buildit/build_llvm7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm
index 3c2703cce0..0c64439078 100755
--- a/utils/buildit/build_llvm
+++ b/utils/buildit/build_llvm
@@ -331,8 +331,15 @@ rm -f lib/libLTO.a lib/libLTO.la
# 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