git: b2bd1781fe56 - stable/13 - depend-cleanup: ensure clang and llvm binaries are rebuilt

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Fri, 09 May 2025 20:32:58 UTC
The branch stable/13 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=b2bd1781fe5645fbbdc6641a1275b6d0696f6663

commit b2bd1781fe5645fbbdc6641a1275b6d0696f6663
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2025-04-25 17:58:03 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2025-05-09 19:53:20 +0000

    depend-cleanup: ensure clang and llvm binaries are rebuilt
    
    In 2e47f35be5dc, libllvm, libclang and liblldb became shared libraries,
    so make sure the binaries that depend on these libraries get rebuilt.
    
    MFC after:      2 weeks
    
    (cherry picked from commit d4dab32448ce7aff01273ecf9965125f0cb8067a)
---
 tools/build/depend-cleanup.sh | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/tools/build/depend-cleanup.sh b/tools/build/depend-cleanup.sh
index c12c8e203324..24bbd07f03c4 100755
--- a/tools/build/depend-cleanup.sh
+++ b/tools/build/depend-cleanup.sh
@@ -171,3 +171,17 @@ if [ -e "$f" ]; then
 		run rm -f "$p"/*.inc
 	fi
 fi
+
+# 20250425  2e47f35be5dc    libllvm, libclang and liblldb became shared libraries
+if [ -f "$OBJTOP"/lib/clang/libllvm/libllvm.a ]; then
+	echo "Removing old static libllvm library"
+        run rm -f "$OBJTOP"/lib/clang/libllvm/libllvm.a
+fi
+if [ -f "$OBJTOP"/lib/clang/libclang/libclang.a ]; then
+	echo "Removing old static libclang library"
+        run rm -f "$OBJTOP"/lib/clang/libclang/libclang.a
+fi
+if [ -f "$OBJTOP"/lib/clang/liblldb/liblldb.a ]; then
+	echo "Removing old static liblldb library"
+        run rm -f "$OBJTOP"/lib/clang/liblldb/liblldb.a
+fi