highway,libjxl: Remove -mfp16-format=ieee when using clang compiler

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2024-04-03 08:17:46 -07:00
parent a8b2cdc20e
commit a6bcdca5b4
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 4 additions and 1 deletions

View File

@ -13,3 +13,5 @@ S = "${WORKDIR}/git"
EXTRA_OECMAKE = "-DBUILD_TESTING=0 -DCMAKE_BUILD_TYPE=Release"
CXXFLAGS:append:arm = " -mfp16-format=ieee"
# Option not supported with clang and its default format for __fp16 anyway with clang
CXXFLAGS:remove:toolchain-clang = "-mfp16-format=ieee"

View File

@ -39,4 +39,5 @@ PACKAGECONFIG[mime] = "-DJPEGXL_ENABLE_PLUGIN_MIME=ON,-DJPEGXL_ENABLE_PLUGIN_MIM
FILES:${PN} += "${libdir}/gdk-pixbuf-2.0 ${datadir}"
CXXFLAGS:append:arm = " -mfp16-format=ieee"
# Option not supported with clang and its default format for __fp16 anyway with clang
CXXFLAGS:remove:toolchain-clang = "-mfp16-format=ieee"