libcompiler_rt Makefile.inc: don't build bfloat16 support for gcc < 13

Older versions of gcc produce "error: unknown type name '__bf16'".

PR:		276104
MFC after:	1 month

(cherry picked from commit 2e226748a9)
This commit is contained in:
Dimitry Andric 2024-04-07 20:21:01 +02:00
parent 5018444b28
commit e2e4022725

View file

@ -230,9 +230,10 @@ SRCF+= comparesf2
#
# bfloat16 support, only used on some architectures.
#
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
${MACHINE_CPUARCH} == "arm" || (${MACHINE_CPUARCH} == "i386" && \
!empty(MACHINE_CPU:Msse2)) || ${MACHINE_CPUARCH} == "riscv"
.if (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
${MACHINE_CPUARCH} == "arm" || (${MACHINE_CPUARCH} == "i386" && \
!empty(MACHINE_CPU:Msse2)) || ${MACHINE_CPUARCH} == "riscv") && \
!(${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} < 130000)
SRCF+= truncdfbf2
SRCF+= truncsfbf2
.endif