mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-03 07:04:53 +00:00
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:
parent
5018444b28
commit
e2e4022725
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue