]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libcompiler_rt Makefile.inc: update _Float16/__bf16 checks
authorDimitry Andric <dim@FreeBSD.org>
Wed, 17 Apr 2024 20:20:47 +0000 (22:20 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Wed, 17 Apr 2024 20:20:47 +0000 (22:20 +0200)
commitf276adc148433d009d198c2ebccdd3303377e237
tree7b15f22e03536ddd8a8c2c7fea23bc2b973c553a
parentf122045e36dd009ecdc6b69a6f4b751c4b10b443
libcompiler_rt Makefile.inc: update _Float16/__bf16 checks

Clang supports __bf16 for riscv from version 18.0 onwards, so update the
checks for it. While here, rewrite the checks so they are hopefully more
readable, and also handle gcc a little better.

In addition, define COMPILER_RT_HAS_FLOAT16 and COMPILER_RT_HAS_BFLOAT16
when these features should be available, since there are some parts in
compiler-rt that check for these defines.

PR: 276104
MFC after: 1 month
lib/libcompiler_rt/Makefile.inc