From d4dab32448ce7aff01273ecf9965125f0cb8067a Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Fri, 25 Apr 2025 19:58:03 +0200 Subject: [PATCH] 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 --- 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 ab779ea83a6..33ca8ecb709 100755 --- a/tools/build/depend-cleanup.sh +++ b/tools/build/depend-cleanup.sh @@ -346,3 +346,17 @@ clean_dep usr.sbin/ctld isns c clean_dep usr.sbin/ctld kernel c clean_dep usr.sbin/ctld login c clean_dep usr.sbin/ctld uclparse c + +# 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