[all-commits] [llvm/llvm-project] 45368c: [compiler-rt][builtins] Skip building (b)float16 s...
Dimitry Andric via All-commits
all-commits at lists.llvm.org
Sun Jan 22 13:17:17 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 45368c75582f0bded1f06d5c82c1f2ee023fb186
https://github.com/llvm/llvm-project/commit/45368c75582f0bded1f06d5c82c1f2ee023fb186
Author: Dimitry Andric <dimitry at andric.com>
Date: 2023-01-22 (Sun, 22 Jan 2023)
Changed paths:
M compiler-rt/lib/builtins/CMakeLists.txt
Log Message:
-----------
[compiler-rt][builtins] Skip building (b)float16 support on i386-freebsd
Since bfloat16 and float16 support is not available for i386-freebsd,
the `truncdfbf2.c` and `truncsfbf2.c` builtin sources should be skipped
when targeting that platform, and `COMPILER_RT_HAS_FLOAT16` should not
be defined.
However, the CMake configuration stage runs its tests with the default
target, which normally is amd64-freebsd, so it will detect both bfloat16
and float16 support.
Move adding of the `COMPILER_RT_HAS_FLOAT16` define to the `foreach()`
loop where all the supported architectures are handled, and do not
enable it when targeting i386-freebsd.
Also remove the bfloat16 sources from the `i386_SOURCES` list, when
targeting i386-freebsd.
Differential Revision: https://reviews.llvm.org/D136044
More information about the All-commits
mailing list