strip-llvm: Don't wipe out the whole share directory

Keep removing the same items installed by LLVM as before (although
that could be revisited too).

This avoids removing unintended files if running strip-llvm after
the installation of other components.
This commit is contained in:
Martin Storsjö committed 2023-04-20 14:00:24 +03:00
1 parent 3f72fcbabf
commit aa173210ff
1 file changed
+5 -1
+5 -1
View File
@@ -117,7 +117,11 @@ if [ -n "$EXEEXT" ]; then
rm -f clang-cpp* clang++*
fi
cd ..
rm -rf share libexec
rm -rf libexec
cd share
rm -rf clang opt-viewer scan-build scan-view
rm -rf man/man1/scan-build*
cd ..
cd include
rm -rf clang clang-c clang-tidy lld llvm llvm-c lldb
cd ..