mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Slightly reorganize libclang_rt Makefile again
Make a separate .elif section for MACHINE_ARCH==powerpc, and subdivide
the MACHINE_CPUARCH values under it. If at some point more sanitizer
libraries become available for powerpc CPU architectures, they can be
added before the "nothing for other powerpc yet" case. Similar for the
MACHINE_ARCH==arm case.
PR: 262706
Fixes: e77a1bb275
MFC after: 3 days
This commit is contained in:
parent
4ea295aba2
commit
897a485c34
1 changed files with 7 additions and 5 deletions
|
@ -60,28 +60,30 @@ SUBDIR+= ${SD_TSAN}
|
|||
SUBDIR+= ${SD_UBSAN}
|
||||
SUBDIR+= ${SD_XRAY}
|
||||
.elif ${MACHINE_CPUARCH} == "arm"
|
||||
# nothing for 32-bit arm
|
||||
# nothing for 32-bit arm yet
|
||||
.elif ${MACHINE_CPUARCH} == "i386"
|
||||
SUBDIR+= ${SD_ASAN}
|
||||
SUBDIR+= ${SD_CFI}
|
||||
SUBDIR+= ${SD_SAFESTACK}
|
||||
SUBDIR+= ${SD_STATS}
|
||||
SUBDIR+= ${SD_UBSAN}
|
||||
.elif ${MACHINE_ARCH} == "powerpc"
|
||||
# nothing for 32-bit powerpc
|
||||
.elif ${MACHINE_ARCH} == "powerpc64"
|
||||
.elif ${MACHINE_CPUARCH} == "powerpc"
|
||||
. if ${MACHINE_ARCH} == "powerpc64"
|
||||
SUBDIR+= ${SD_ASAN}
|
||||
SUBDIR+= ${SD_MSAN}
|
||||
SUBDIR+= ${SD_STATS}
|
||||
SUBDIR+= ${SD_TSAN}
|
||||
SUBDIR+= ${SD_UBSAN}
|
||||
.elif ${MACHINE_ARCH} == "powerpc64le"
|
||||
. elif ${MACHINE_ARCH} == "powerpc64le"
|
||||
SUBDIR+= ${SD_ASAN}
|
||||
SUBDIR+= ${SD_MSAN}
|
||||
SUBDIR+= ${SD_STATS}
|
||||
SUBDIR+= ${SD_TSAN}
|
||||
SUBDIR+= ${SD_UBSAN}
|
||||
SUBDIR+= ${SD_XRAY}
|
||||
. else
|
||||
# nothing for other powerpc yet
|
||||
. endif
|
||||
.elif ${MACHINE_CPUARCH} == "riscv"
|
||||
SUBDIR+= ${SD_ASAN}
|
||||
SUBDIR+= ${SD_STATS}
|
||||
|
|
Loading…
Reference in a new issue