Rearrange libclang_rt Makefile again, and attempt to simplify it.

It turns out that parts of the common sanitizer code still do not
compile for arm and aarch64, at least not on FreeBSD, so for now those
are all limited to amd64, and sometimes i386.
This commit is contained in:
Dimitry Andric 2019-09-13 21:03:43 +00:00
parent f993ed2fbd
commit 4789686d67
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/clang900-import/; revision=352307

View File

@ -1,47 +1,35 @@
# $FreeBSD$ # $FreeBSD$
SUBDIR_ALL+= include .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
SUBDIR_ALL+= profile SUBDIR+= include
SUBDIR_ALL+= stats SUBDIR+= asan
SUBDIR_ALL+= stats_client SUBDIR+= asan-preinit
SUBDIR_ALL+= ubsan_minimal SUBDIR+= asan_cxx
SUBDIR_ALL+= ubsan_standalone SUBDIR+= asan_dynamic
SUBDIR_ALL+= ubsan_standalone_cxx SUBDIR+= cfi
SUBDIR+= cfi_diag
SUBDIR+= safestack
SUBDIR+= stats
SUBDIR+= stats_client
SUBDIR+= ubsan_minimal
SUBDIR+= ubsan_standalone
SUBDIR+= ubsan_standalone_cxx
.endif # amd64 || i386
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ .if ${MACHINE_CPUARCH} == "amd64"
${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "i386" SUBDIR+= dd
SUBDIR_ALL+= asan SUBDIR+= fuzzer
SUBDIR_ALL+= asan-preinit SUBDIR+= fuzzer_no_main
SUBDIR_ALL+= asan_cxx SUBDIR+= msan
SUBDIR_ALL+= asan_dynamic SUBDIR+= msan_cxx
SUBDIR_ALL+= cfi SUBDIR+= tsan
SUBDIR_ALL+= cfi_diag SUBDIR+= tsan_cxx
.endif # aarch64 || amd64 || arm || i386 SUBDIR+= xray
SUBDIR+= xray-basic
SUBDIR+= xray-fdr
SUBDIR+= xray-profiling
.endif # amd64
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" SUBDIR+= profile
SUBDIR_ALL+= dd
SUBDIR_ALL+= fuzzer
SUBDIR_ALL+= fuzzer_no_main
SUBDIR_ALL+= msan
SUBDIR_ALL+= msan_cxx
SUBDIR_ALL+= tsan
SUBDIR_ALL+= tsan_cxx
.endif # aarch64 || amd64
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
${MACHINE_CPUARCH} == "i386"
SUBDIR_ALL+= safestack
.endif # aarch64 || amd64 || i386
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
${MACHINE_CPUARCH} == "arm"
SUBDIR_ALL+= xray
SUBDIR_ALL+= xray-basic
SUBDIR_ALL+= xray-fdr
SUBDIR_ALL+= xray-profiling
.endif # aarch64 || amd64 || arm
SUBDIR+= ${SUBDIR_ALL:O}
.include <bsd.subdir.mk> .include <bsd.subdir.mk>
# DO NOT DELETE