[libc-commits] [libc] [libc] [math] Fix build bot failure introduced by unit test in PR #201154 (PR #203457)

via libc-commits libc-commits at lists.llvm.org
Thu Jun 11 21:09:19 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Hoàng Minh Thiên (hmthien050209)

<details>
<summary>Changes</summary>

The root cause is that the unit test `libc/test/src/math/RoundToIntegerTest.h` `#include <cfenv>` which requires the macro `__GLIBC_PREREQ` to be defined. But in that riscv32 runtime, seems like it's not defined.

Removing the include works fine, and at the same time, would resolve the failure.

---
Full diff: https://github.com/llvm/llvm-project/pull/203457.diff


1 Files Affected:

- (modified) libc/test/src/math/RoundToIntegerTest.h (-1) 


``````````diff
diff --git a/libc/test/src/math/RoundToIntegerTest.h b/libc/test/src/math/RoundToIntegerTest.h
index db6fd9ccd1ce1..4c71009fa91bc 100644
--- a/libc/test/src/math/RoundToIntegerTest.h
+++ b/libc/test/src/math/RoundToIntegerTest.h
@@ -10,7 +10,6 @@
 #define LLVM_LIBC_TEST_SRC_MATH_ROUNDTOINTEGERTEST_H
 
 #include "test/UnitTest/RoundingModeUtils.h"
-#include <cfenv>
 #undef LIBC_MATH_USE_SYSTEM_FENV
 
 #include "src/__support/CPP/algorithm.h"

``````````

</details>


https://github.com/llvm/llvm-project/pull/203457


More information about the libc-commits mailing list