strip-llvm: Remove lld-link on windows

This commit is contained in:
Martin Storsjö committed 2019-05-06 11:05:25 +03:00
1 parent c3aeb78576
commit 6223a35822
1 file changed
+10 -10
+10 -10
View File
@@ -69,18 +69,18 @@ for i in bugpoint c-index-test clang-* diagtool dsymutil git-clang-format hmapto
esac esac
done done
if [ -n "$EXEEXT" ]; then if [ -n "$EXEEXT" ]; then
# Convert these two from symlinks to regular files, so we can remove # Convert ld.lld from a symlink to a regular file, so we can remove
# the one they point to. On MSYS, and if packaging built toolchains # the one it points to. On MSYS, and if packaging built toolchains
# in a zip file, symlinks are converted into copies. # in a zip file, symlinks are converted into copies.
# lld-link isn't used normally, but can be useful for debugging/testing. if [ -L ld.lld$EXEEXT ]; then
for i in ld.lld lld-link; do cp ld.lld$EXEEXT tmp
if [ -L $i$EXEEXT ]; then rm ld.lld$EXEEXT
cp $i$EXEEXT tmp mv tmp ld.lld$EXEEXT
rm $i$EXEEXT
mv tmp $i$EXEEXT
fi fi
done # lld-link isn't used normally, but can be useful for debugging/testing,
rm -f lld$EXEEXT # and is kept in unix setups. Removing it when packaging for windows,
# to conserve space.
rm -f lld$EXEEXT lld-link$EXEEXT
# Remove superfluous frontends; these aren't really used. # Remove superfluous frontends; these aren't really used.
rm -f clang-cpp* clang++* rm -f clang-cpp* clang++*
fi fi