mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
Simplify conditional guards for libclang_rt.
All supported architectures can build libclang_rt now. Reviewed by: dim Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D35740
This commit is contained in:
parent
a6e734d779
commit
0b09867f67
|
@ -180,11 +180,8 @@ SUBDIR.${MK_LDNS}+= libldns
|
||||||
SUBDIR.${MK_STATS}+= libstats
|
SUBDIR.${MK_STATS}+= libstats
|
||||||
|
|
||||||
# The libraries under libclang_rt can only be built by clang and when we enable
|
# The libraries under libclang_rt can only be built by clang and when we enable
|
||||||
# C++ support. Furthermore, they can only be built for certain architectures.
|
# C++ support.
|
||||||
.if ${COMPILER_TYPE} == "clang" && ${MK_CXX} != "no" && \
|
.if ${COMPILER_TYPE} == "clang" && ${MK_CXX} != "no"
|
||||||
(${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
|
|
||||||
${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "i386" || \
|
|
||||||
${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "riscv")
|
|
||||||
_libclang_rt= libclang_rt
|
_libclang_rt= libclang_rt
|
||||||
.elif (${MK_ASAN} != "no" || ${MK_UBSAN} != "no") && make(all)
|
.elif (${MK_ASAN} != "no" || ${MK_UBSAN} != "no") && make(all)
|
||||||
.error Requested build with sanitizers but cannot build runtime libraries!
|
.error Requested build with sanitizers but cannot build runtime libraries!
|
||||||
|
|
Loading…
Reference in a new issue