mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-01 14:14:56 +00:00
libcompiler_rt: gcc13 doesn't support _Float16 on arm
Don't set CRT_COMMON_F16_ARCH for arm as it's not supported by gcc13. Differential Revision: https://reviews.freebsd.org/D45234
This commit is contained in:
parent
6729e8a40b
commit
fcc5fa091e
|
@ -233,7 +233,6 @@ SRCF+= comparesf2
|
|||
# Helper to reduce complexity of _Float16 and __bf16 statements below.
|
||||
.if ${MACHINE_CPUARCH} == "aarch64" || \
|
||||
${MACHINE_CPUARCH} == "amd64" || \
|
||||
${MACHINE_CPUARCH} == "arm" || \
|
||||
(${MACHINE_CPUARCH} == "i386" && !empty(MACHINE_CPU:Msse2))
|
||||
CRT_COMMON_F16_ARCH=t
|
||||
.endif
|
||||
|
@ -243,7 +242,8 @@ CRT_COMMON_F16_ARCH=t
|
|||
# versions.
|
||||
#
|
||||
.if ((${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000) && \
|
||||
(defined(CRT_COMMON_F16_ARCH) || ${MACHINE_CPUARCH} == "riscv")) || \
|
||||
(defined(CRT_COMMON_F16_ARCH) || \
|
||||
${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "riscv")) || \
|
||||
((${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 120000) && \
|
||||
(defined(CRT_COMMON_F16_ARCH)))
|
||||
CFLAGS+= -DCOMPILER_RT_HAS_FLOAT16
|
||||
|
|
Loading…
Reference in a new issue