[libc-commits] [libc] 8679ab6 - [libc] [math] Fix build bot failure introduced by unit test in PR #201154 (#203457)
via libc-commits
libc-commits at lists.llvm.org
Thu Jun 11 21:16:36 PDT 2026
Author: Hoàng Minh Thiên
Date: 2026-06-12T04:16:31Z
New Revision: 8679ab6267aeae9971cae4ed7eff9966e813e28d
URL: https://github.com/llvm/llvm-project/commit/8679ab6267aeae9971cae4ed7eff9966e813e28d
DIFF: https://github.com/llvm/llvm-project/commit/8679ab6267aeae9971cae4ed7eff9966e813e28d.diff
LOG: [libc] [math] Fix build bot failure introduced by unit test in PR #201154 (#203457)
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.
Added:
Modified:
libc/test/src/math/RoundToIntegerTest.h
Removed:
################################################################################
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"
More information about the libc-commits
mailing list