From ffed7ab85c74fb10580ea440af62dd68e4528217 Mon Sep 17 00:00:00 2001 From: "Mikhail R. Gadelha" Date: Sat, 19 Jul 2025 18:47:40 -0300 Subject: [PATCH 1/2] [libc] Disable bfloat16 test for full build mode This patch temporarily disables bfloat16_test for full build mode, until the MPCommon target is updated so that mpfr_inc.h is not included in the MPCommon.h header. This should fix the rv32 buildbot failures. --- libc/test/src/__support/FPUtil/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libc/test/src/__support/FPUtil/CMakeLists.txt b/libc/test/src/__support/FPUtil/CMakeLists.txt index dfd90057b6ebf..571352f31661e 100644 --- a/libc/test/src/__support/FPUtil/CMakeLists.txt +++ b/libc/test/src/__support/FPUtil/CMakeLists.txt @@ -39,6 +39,10 @@ add_fp_unittest( libc.src.__support.FPUtil.rounding_mode ) +if(LLVM_LIBC_FULL_BUILD) + return() +endif() + add_fp_unittest( bfloat16_test NEED_MPFR From 87f1fa61b946d7353321f9293f79caa253e049b2 Mon Sep 17 00:00:00 2001 From: "Mikhail R. Gadelha" Date: Sun, 20 Jul 2025 12:14:21 -0300 Subject: [PATCH 2/2] Added TODO Signed-off-by: Mikhail R. Gadelha --- libc/test/src/__support/FPUtil/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc/test/src/__support/FPUtil/CMakeLists.txt b/libc/test/src/__support/FPUtil/CMakeLists.txt index 571352f31661e..039c700a6ceb0 100644 --- a/libc/test/src/__support/FPUtil/CMakeLists.txt +++ b/libc/test/src/__support/FPUtil/CMakeLists.txt @@ -39,6 +39,8 @@ add_fp_unittest( libc.src.__support.FPUtil.rounding_mode ) +# TODO: Temporally disable bfloat16 test until MPCommon target is updated +# https://github.com/llvm/llvm-project/pull/149678 if(LLVM_LIBC_FULL_BUILD) return() endif()