[llvm-commits] [llvm-gcc-4.2] r64181 - /llvm-gcc-4.2/branches/Apple/Dib/build_gcc

Bill Wendling isanbard at gmail.com
Mon Feb 9 14:25:24 PST 2009


Author: void
Date: Mon Feb  9 16:25:23 2009
New Revision: 64181

URL: http://llvm.org/viewvc/llvm-project?rev=64181&view=rev
Log:
Don't strip dSYM objects.

Modified:
    llvm-gcc-4.2/branches/Apple/Dib/build_gcc

Modified: llvm-gcc-4.2/branches/Apple/Dib/build_gcc
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Dib/build_gcc?rev=64181&r1=64180&r2=64181&view=diff

==============================================================================
--- llvm-gcc-4.2/branches/Apple/Dib/build_gcc (original)
+++ llvm-gcc-4.2/branches/Apple/Dib/build_gcc Mon Feb  9 16:25:23 2009
@@ -582,17 +582,20 @@
 # Remove debugging information from DEST_DIR.
 
 if [ "x$LLVM_DEBUG" != "x1" ]; then
-    find $DEST_DIR -perm -0111 \! -name \*.dylib \! -name fixinc.sh \
-        \! -name mkheaders \! -name libstdc++.dylib -type f -print \
+    # LLVM LOCAL begin - don't strip dSYM objects
+    find $DEST_DIR -perm -0111 \! -path '*DWARF*' \! -name \*.dylib \
+        \! -name fixinc.sh \! -name mkheaders \! -name libstdc++.dylib \
+        -type f -print \
         | xargs strip || exit 1
-    # APPLE LOCAL begin LLVM - Strip with -Sx instead of -SX
-    find $DEST_DIR \( -name \*.a -or -name \*.dylib \) \
+    # LLVM LOCAL begin - Strip with -Sx instead of -SX
+    find $DEST_DIR \! -path '*DWARF*' \( -name \*.a -or -name \*.dylib \) \
         \! -name libgcc_s.10.*.dylib \! -name libstdc++.dylib -type f \
 	-print \
        	| xargs strip -SX || exit 1
-    # APPLE LOCAL end LLVM - Strip with -Sx instead of -SX
-    find $DEST_DIR -name \*.a -type f -print \
+    # LLVM LOCAL end - Strip with -Sx instead of -SX
+    find $DEST_DIR \! -path '*DWARF*' -name \*.a -type f -print \
         | xargs ranlib || exit 1
+    # LLVM LOCAL end - don't strip dSYM objects
 fi
 
 # LLVM LOCAL begin





More information about the llvm-commits mailing list