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
This commit is contained in:
parent
12ad8bdb34
commit
7676b388ad
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user