From aa173210ff3c7c16cfbd6f227832f16653337709 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 20 Apr 2023 12:47:50 +0300 Subject: [PATCH] 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. --- strip-llvm.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/strip-llvm.sh b/strip-llvm.sh index 9ae6b9f..81920ff 100755 --- a/strip-llvm.sh +++ b/strip-llvm.sh @@ -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 ..