Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jun 2025 14:10:07 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 20c636620c69 - main - libclang_rt: Descend into libclang_rt to clean
Message-ID:  <202506101410.55AEA7K5014434@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj:

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

commit 20c636620c6955795f97619d22c7eca9f8599ad7
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-06-10 14:09:12 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-06-10 14:09:12 +0000

    libclang_rt: Descend into libclang_rt to clean
    
    Otherwise, during a clean buildworld we don't descend into libclang_rt
    to remove object files.
    
    Reviewed by:    brooks, dim, emaste
    MFC after:      2 weeks
    Sponsored by:   The FreeBSD Foundation
    Sponsored by:   Klara, Inc.
    Differential Revision:  https://reviews.freebsd.org/D50766
---
 lib/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/Makefile b/lib/Makefile
index 1924df391072..82d461fe0873 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -180,7 +180,8 @@ SUBDIR.${MK_LDNS}+=	libldns
 SUBDIR.${MK_STATS}+=	libstats
 
 # The libraries under libclang_rt can only be built by clang.
-.if ${COMPILER_TYPE} == "clang" && ${MK_CLANG} != "no"
+.if (${COMPILER_TYPE} == "clang" || make(clean) || make(cleandir)) && \
+    ${MK_CLANG} != "no"
 _libclang_rt=	libclang_rt
 .elif (${MK_ASAN} != "no" || ${MK_UBSAN} != "no") && make(all)
 .error Requested build with sanitizers but cannot build runtime libraries!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202506101410.55AEA7K5014434>