[PATCH v3] math: Exclude tgmath3-macro-tests for Clang

H.J. Lu hjl.tools@gmail.com
Wed Dec 18 21:40:32 GMT 2024


tgmath3-macro-tests won't compile with Clang's <tgmath.h>.  Disable them
for now when Clang is used for testing so that "make check" can finish.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
---
 math/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index 93fa147033..7ef2e6637b 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -1038,7 +1038,10 @@ tgmath3-macros = \
   ufromfpx \
   # tgmath3-macros
 tgmath3-macro-tests = $(addprefix test-tgmath3-,$(tgmath3-macros))
+ifneq ($(have-test-clang),yes)
+# NB: tgmath3-macro-tests won't compile with Clang's <tgmath.h>.
 tests-tgmath += $(tgmath3-macro-tests)
+endif
 tests += $(tests-tgmath)
 
 generated += $(addsuffix .c,$(tgmath3-macro-tests))
-- 
2.47.1



More information about the Libc-alpha mailing list