Don't expect that all files exist in strip-llvm.sh
If run multiple times, this removal would try to remove a file named clang-*, which doesn't exist.
This commit is contained in:
1 parent
391c93d0d4
commit
47392c5a90
1 file changed
+1
-1
+1
-1
@@ -36,7 +36,7 @@ for i in bugpoint c-index-test clang-* diagtool dsymutil git-clang-format hmapto
|
|||||||
# was a plain number (as if the original name was clang-7); if it wasn't
|
# was a plain number (as if the original name was clang-7); if it wasn't
|
||||||
# empty, remove the tool.
|
# empty, remove the tool.
|
||||||
if [ "$(echo $suffix | tr -d '[0-9]')" != "" ]; then
|
if [ "$(echo $suffix | tr -d '[0-9]')" != "" ]; then
|
||||||
rm $i
|
rm -f $i
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
llvm-ar|llvm-cvtres|llvm-dlltool|llvm-nm|llvm-objdump|llvm-ranlib|llvm-rc|llvm-readobj|llvm-strings|llvm-pdbutil)
|
llvm-ar|llvm-cvtres|llvm-dlltool|llvm-nm|llvm-objdump|llvm-ranlib|llvm-rc|llvm-readobj|llvm-strings|llvm-pdbutil)
|
||||||
|
|||||||
Reference in new issue
Block a user