]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
math: Exclude tgmath3-macro-tests for Clang
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 15 Dec 2024 23:21:43 +0000 (07:21 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 21 Dec 2024 22:07:17 +0000 (06:07 +0800)
tgmath3-macro-tests won't compile with <float.h> and <tgmath.h> from
Clang due to missing C23 support:

https://github.com/llvm/llvm-project/issues/97335

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

index d262de8beebc8155b7338ae6804a7a099d06f2a6..a9f29d6b5b4c7b50d84d1f78cd30156638a55803 100644 (file)
@@ -1028,7 +1028,12 @@ 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 <float.h> and <tgmath.h>
+# from Clang due to missing C23 support:
+# https://github.com/llvm/llvm-project/issues/97335
 tests-tgmath += $(tgmath3-macro-tests)
+endif
 tests += $(tests-tgmath)
 
 generated += $(addsuffix .c,$(tgmath3-macro-tests))