strip-llvm: Remove lld-link on windows
This commit is contained in:
1 parent
c3aeb78576
commit
6223a35822
1 file changed
+11
-11
+11
-11
@@ -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
|
fi
|
||||||
mv tmp $i$EXEEXT
|
# lld-link isn't used normally, but can be useful for debugging/testing,
|
||||||
fi
|
# and is kept in unix setups. Removing it when packaging for windows,
|
||||||
done
|
# to conserve space.
|
||||||
rm -f lld$EXEEXT
|
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
|
||||||
|
|||||||
Reference in new issue
Block a user