Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Apr 2021 13:30:01 GMT
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 2cb6b07ca506 - stable/13 - Always build the sanitizer runtimes when compiling with clang
Message-ID:  <202104101330.13ADU1qC003433@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by arichardson:

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

commit 2cb6b07ca506d2c1876279d477022022194e4cc9
Author:     Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2021-02-10 15:25:14 +0000
Commit:     Alex Richardson <arichardson@FreeBSD.org>
CommitDate: 2021-04-10 13:01:04 +0000

    Always build the sanitizer runtimes when compiling with clang
    
    This allows instrumenting e.g. test binaries even when compiling with an
    external clang (e.g. CROSS_TOOLCHAIN=llvm11). I have some upcoming patches
    that allow building the entire base system with ASan/UBSan/etc.
    instrumentation and this is required in preparation for this.
    
    Reviewed By:    dim, emaste
    Differential Revision: https://reviews.freebsd.org/D28532
    
    (cherry picked from commit 7676b388adbc81a2ad46b43852cd9bc7ac7fad7e)
---
 lib/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Makefile b/lib/Makefile
index ddb627917215..90f1f7f3cd73 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -175,7 +175,7 @@ SUBDIR.${MK_STATS}+=	libstats
 # The libraries under libclang_rt can only be built by clang, and only make
 # sense to build when clang is enabled at all.  Furthermore, they can only be
 # built for certain architectures.
-.if ${MK_CLANG} != "no" && ${COMPILER_TYPE} == "clang" && \
+.if ${COMPILER_TYPE} == "clang" && \
     (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
     ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "i386" || \
     ${MACHINE_CPUARCH} == "powerpc")



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