summaryrefslogtreecommitdiff
path: root/utils/buildit
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-02-09 02:13:33 +0000
committerBill Wendling <isanbard@gmail.com>2009-02-09 02:13:33 +0000
commit25c0805c2a12c8dd1ff96bec97ca60904a05bd3b (patch)
treeab6d8dbcc7b3776a8cc5ac2d900d65f3a319f609 /utils/buildit
parent7c7708946bd68762036a86beb293b3835ddbe9b7 (diff)
downloadllvm-25c0805c2a12c8dd1ff96bec97ca60904a05bd3b.tar.gz
llvm-25c0805c2a12c8dd1ff96bec97ca60904a05bd3b.tar.bz2
llvm-25c0805c2a12c8dd1ff96bec97ca60904a05bd3b.tar.xz
Remove warnings about not being able to delete something. Don't run lipo on gccas, gccld, and llvm-config scripts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64107 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/buildit')
-rwxr-xr-xutils/buildit/build_llvm11
1 files changed, 7 insertions, 4 deletions
diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm
index bd245f13d2..71b6603f8c 100755
--- a/utils/buildit/build_llvm
+++ b/utils/buildit/build_llvm
@@ -184,16 +184,19 @@ cp `find $DIR -name tblgen` $DT_HOME/local/bin
# 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