[libc-commits] [libc] [libc] [math] Fix build bot failure introduced by unit test in PR #201154 (PR #203457)
Hoàng Minh Thiên via libc-commits
libc-commits at lists.llvm.org
Thu Jun 11 21:08:30 PDT 2026
https://github.com/hmthien050209 created https://github.com/llvm/llvm-project/pull/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.
>From 65d874cd2d89369a4ce0a79802089c4cd113cff0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ho=C3=A0ng=20Minh=20Thi=C3=AAn?=
<hoangminhthien05022009 at gmail.com>
Date: Fri, 12 Jun 2026 11:04:06 +0700
Subject: [PATCH] fix: build bot failure
https://lab.llvm.org/buildbot/#/builders/196/builds/19693
---
libc/test/src/math/RoundToIntegerTest.h | 1 -
1 file changed, 1 deletion(-)
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