[compiler-rt] Fix detecting _Float16 support for secondary targets (#117813) sandbox/dkson95/19.1.4_build2 accepted/tizen/base/toolchain/20241205.021435
authorAlexander Richardson <alexrichardson@google.com>
Thu, 28 Nov 2024 18:42:47 +0000 (10:42 -0800)
committerDongkyun Son <dongkyun.s@samsung.com>
Wed, 4 Dec 2024 09:16:10 +0000 (18:16 +0900)
commitc47584907f8a2dad33b89055de31142f69494b3a
tree97f6797906edf06fb6951188b687a037ba6089a4
parent64355503103b20ab9622f4e3f8a5e4d235325d6c
[compiler-rt] Fix detecting _Float16 support for secondary targets (#117813)

It turns out we were not passing -m32 to the check_c_source_compiles()
invocation since CMAKE_REQUIRE_FLAGS needs to be string separated list
and
we were passing a ;-separated CMake list which appears to be parsed by
CMake as 'ignore all arguments beyond the first'.
Fix this by transforming the list to a command line first.

With this change, Clang 17 no longer claims to support _Float16 for
i386.
compiler-rt/lib/builtins/CMakeLists.txt