[llvm-commits] [llvm] r64123 - /llvm/tags/Apple/llvmCore-2095.1/utils/buildit/build_llvm

Bill Wendling isanbard at gmail.com
Sun Feb 8 22:57:57 PST 2009


Author: void
Date: Mon Feb  9 00:57:56 2009
New Revision: 64123

URL: http://llvm.org/viewvc/llvm-project?rev=64123&view=rev
Log:
- Make sure the 'strip' command has .so files to strip.
- Don't run 'lipo' on scripts.
- Strip the libLTO.dylib dylib.

Modified:
    llvm/tags/Apple/llvmCore-2095.1/utils/buildit/build_llvm

Modified: llvm/tags/Apple/llvmCore-2095.1/utils/buildit/build_llvm
URL: http://llvm.org/viewvc/llvm-project/llvm/tags/Apple/llvmCore-2095.1/utils/buildit/build_llvm?rev=64123&r1=64122&r2=64123&view=diff

==============================================================================
--- llvm/tags/Apple/llvmCore-2095.1/utils/buildit/build_llvm (original)
+++ llvm/tags/Apple/llvmCore-2095.1/utils/buildit/build_llvm Mon Feb  9 00:57:56 2009
@@ -176,7 +176,9 @@
 if [ "x$LLVM_DEBUG" != "x1" ]; then
     # Strip local symbols from llvm libraries.
     strip -S $DEST_DIR$DEST_ROOT/lib/*.[oa]
-    strip -Sx $DEST_DIR$DEST_ROOT/lib/*.so
+    for f in `ls $DEST_DIR$DEST_ROOT/lib/*.so`; do
+        strip -Sx $f
+    done
 fi
 
 # Copy over the tblgen utility.
@@ -184,21 +186,25 @@
 
 # Remove .dir files 
 cd $DEST_DIR$DEST_ROOT
-rm bin/.dir etc/llvm/.dir lib/.dir
+rm -f bin/.dir etc/llvm/.dir lib/.dir
 
 # Remove PPC64 fat slices.
 cd $DEST_DIR$DEST_ROOT/bin
 if [ $MACOSX_DEPLOYMENT_TARGET = "10.4" ]; then
-    find . -perm 755 -type f -exec lipo -extract ppc -extract i386 {} -output {} \;
+    find . -perm 755 -type f \! \( -name '*gccas' -o -name '*gccld' -o -name llvm-config \) \
+        -exec lipo -extract ppc -extract i386 {} -output {} \;
 elif [ $MACOSX_DEPLOYMENT_TARGET = "10.5" ]; then
-    find . -perm 755 -type f -exec lipo -extract ppc7400 -extract i386 {} -output {} \;
+    find . -perm 755 -type f \! \( -name '*gccas' -o -name '*gccld' -o -name llvm-config \) \
+        -exec lipo -extract ppc7400 -extract i386 {} -output {} \;
 else
-    find . -perm 755 -type f -exec lipo -extract ppc7400 -extract i386 -extract x86_64 {} -output {} \;
+    find . -perm 755 -type f \! \( -name '*gccas' -o -name '*gccld' -o -name llvm-config \) \
+        -exec lipo -extract ppc7400 -extract i386 -extract x86_64 {} -output {} \;
 fi
 
 cd $DEST_DIR$DEST_ROOT
 mkdir -p $DT_HOME/lib
 mv lib/libLTO.dylib $DT_HOME/lib/libLTO.dylib
+strip -S lib/libLTO.dylib $DT_HOME/lib/libLTO.dylib
 rm -f lib/libLTO.a lib/libLTO.la
 
 # Compress manpages





More information about the llvm-commits mailing list