Don't run 'strip' on files that aren't there.
authorBill Wendling <isanbard@gmail.com>
Mon, 9 Feb 2009 02:18:35 +0000 (02:18 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 9 Feb 2009 02:18:35 +0000 (02:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64108 91177308-0d34-0410-b5e6-96231b3b80d8

utils/buildit/build_llvm

index 71b6603f8c910acbd4dc0c8827b14272c4632974..6ded723dd17bfb524701460151d168f439e8618d 100755 (executable)
@@ -176,7 +176,9 @@ echo "#define LLVM_MINOR_VERSION ${RC_ProjectSourceSubversion}" >> $DEST_DIR$DES
 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 file in $DEST_DIR$DEST_ROOT/lib/*.so; do
+        strip -Sx $file
+    done
 fi
 
 # Copy over the tblgen utility.