[llvm-commits] [llvm-gcc-4.2] r48737 - /llvm-gcc-4.2/trunk/build_gcc

Bill Wendling isanbard at gmail.com
Mon Mar 24 11:40:12 PDT 2008


Author: void
Date: Mon Mar 24 13:40:12 2008
New Revision: 48737

URL: http://llvm.org/viewvc/llvm-project?rev=48737&view=rev
Log:
Don't strip things during a debug build.

Modified:
    llvm-gcc-4.2/trunk/build_gcc

Modified: llvm-gcc-4.2/trunk/build_gcc
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/build_gcc?rev=48737&r1=48736&r2=48737&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/build_gcc (original)
+++ llvm-gcc-4.2/trunk/build_gcc Mon Mar 24 13:40:12 2008
@@ -516,16 +516,18 @@
 ########################################
 # Remove debugging information from DEST_DIR.
 
-find $DEST_DIR -perm -0111 \! -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 \) \
-    \! -name libgcc_s.10.*.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 \
-  | xargs ranlib || exit 1
+if [ "x$LLVM_DEBUG" != "x1" ]; then
+    find $DEST_DIR -perm -0111 \! -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 \) \
+        \! -name libgcc_s.10.*.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 \
+        | xargs ranlib || exit 1
+fi
 
 # APPLE LOCAL begin LLVM
 # Set up the llvm-gcc/llvm-g++ symlinks.





More information about the llvm-commits mailing list