Remove dangling symlinks when stripping the llvm installation
This commit is contained in:
1 parent
917860d0ef
commit
bbea540de6
1 file changed
+3
@@ -30,6 +30,9 @@ for i in bugpoint c-index-test clang-* diagtool dsymutil git-clang-format hmapto
|
|||||||
*)
|
*)
|
||||||
if [ -f $i ]; then
|
if [ -f $i ]; then
|
||||||
rm $i
|
rm $i
|
||||||
|
elif [ -L $i ] && [ ! -e $(readlink $i) ]; then
|
||||||
|
# Remove dangling symlinks
|
||||||
|
rm $i
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in new issue
Block a user