git: 7676b388adbc - main - Always build the sanitizer runtimes when compiling with clang
Alex Richardson
arichardson at FreeBSD.org
Wed Feb 10 15:25:43 UTC 2021
The branch main has been updated by arichardson:
URL: https://cgit.FreeBSD.org/src/commit/?id=7676b388adbc81a2ad46b43852cd9bc7ac7fad7e
commit 7676b388adbc81a2ad46b43852cd9bc7ac7fad7e
Author: Alex Richardson <arichardson at FreeBSD.org>
AuthorDate: 2021-02-10 15:25:14 +0000
Commit: Alex Richardson <arichardson at FreeBSD.org>
CommitDate: 2021-02-10 15:25:14 +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
---
lib/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Makefile b/lib/Makefile
index 48276fcd361e..80b77f1fd704 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")
More information about the dev-commits-src-all
mailing list