From 167d9f39d07da133fda786b7be40f2b8275e2d5f Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 3 Apr 2024 08:17:46 -0700 Subject: [PATCH] highway,libjxl: Remove -mfp16-format=ieee when using clang compiler Signed-off-by: Khem Raj --- meta-oe/recipes-extended/highway/highway_1.1.0.bb | 2 ++ meta-oe/recipes-multimedia/libjxl/libjxl_0.10.2.bb | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-extended/highway/highway_1.1.0.bb b/meta-oe/recipes-extended/highway/highway_1.1.0.bb index ec9d8f742d..11d9e7cddf 100644 --- a/meta-oe/recipes-extended/highway/highway_1.1.0.bb +++ b/meta-oe/recipes-extended/highway/highway_1.1.0.bb @@ -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" diff --git a/meta-oe/recipes-multimedia/libjxl/libjxl_0.10.2.bb b/meta-oe/recipes-multimedia/libjxl/libjxl_0.10.2.bb index 0c4f79fdb4..142b283614 100644 --- a/meta-oe/recipes-multimedia/libjxl/libjxl_0.10.2.bb +++ b/meta-oe/recipes-multimedia/libjxl/libjxl_0.10.2.bb @@ -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"