Skip to content

Commit 3f77825

Browse files
committed
compiler-rt: improve _Float16 and __bf16 guards
Tighten the bounds on enabling _Float16 and __bf16 to not include development 15.0.0 and development versions there of (including the release/15.x branch point). __bf16 support was enabled very late in the 15.0.0 release cycle, just prior to rc3. This caused problems building amd64 targets with a Morello LLVM compiler synced to near the 15.x branch point.
1 parent 3e8166c commit 3f77825

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/libcompiler_rt/Makefile.inc

+2-2
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ CRT_COMMON_F16_ARCH=t
252252
# _Float16 support, only on some architectures, and with certain compiler
253253
# versions.
254254
#
255-
.if ((${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000) && \
255+
.if ((${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150001) && \
256256
(defined(CRT_COMMON_F16_ARCH) || \
257257
${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "riscv")) || \
258258
((${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 120000) && \
@@ -264,7 +264,7 @@ CFLAGS+= -DCOMPILER_RT_HAS_FLOAT16
264264
# __bf16 support, only on some architectures, and with certain compiler
265265
# versions.
266266
#
267-
.if ((${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000) && \
267+
.if ((${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150001) && \
268268
(defined(CRT_COMMON_F16_ARCH)) && ${MACHINE_CPUARCH} != "aarch64") || \
269269
((${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 160000) && \
270270
${MACHINE_CPUARCH} == "aarch64") || \

0 commit comments

Comments
 (0)