Strip resulting binaries.
authorBill Wendling <isanbard@gmail.com>
Tue, 29 Jun 2010 01:08:57 +0000 (01:08 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 29 Jun 2010 01:08:57 +0000 (01:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107112 91177308-0d34-0410-b5e6-96231b3b80d8

utils/buildit/build_llvm

index 3c2703cce0e60da843e0f26ffeff1fc5b9b6b20f..0c64439078a69156683c1c66ee4273d40e7a7c71 100755 (executable)
@@ -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