Remove dangling symlinks when stripping the llvm installation

This commit is contained in:
Martin Storsjö committed 2018-08-03 11:58:59 +03:00
1 parent 917860d0ef
commit bbea540de6
1 file changed
+3
+3
View File
@@ -30,6 +30,9 @@ for i in bugpoint c-index-test clang-* diagtool dsymutil git-clang-format hmapto
*)
if [ -f $i ]; then
rm $i
elif [ -L $i ] && [ ! -e $(readlink $i) ]; then
# Remove dangling symlinks
rm $i
fi
;;
esac