aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDmitry Chestnykh <dm.chestnykh@gmail.com>2024-12-24 11:52:35 +0300
committerSam James <sam@gentoo.org>2024-12-24 11:33:33 +0000
commit5a96da210c15e18c3c5298dc23a9e2e57691b6c6 (patch)
tree0c26e592385a1156e900bffbdfe025044ba2009c /configure.ac
parent0c36c983ecb522688b3e4dbad6196839188509d9 (diff)
downloadglibc-5a96da210c15e18c3c5298dc23a9e2e57691b6c6.tar.xz
glibc-5a96da210c15e18c3c5298dc23a9e2e57691b6c6.zip
stdio-common: Use clang with bugfix for bug28
The issue that was the cause of hang was fixed in upstream. Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index fc5ddb8561..5f60b523bb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -665,6 +665,21 @@ LIBC_TRY_TEST_CXX_COMMAND([for clang++],
)
LIBC_CONFIG_VAR([have-test-clangxx], [$libc_cv_test_clangxx])
+if test "$libc_cv_test_clang" = "yes"; then
+ conftest_code="
+ #if __clang_major__ > 19
+ #error clang version > 19
+ #endif
+ "
+ LIBC_TRY_TEST_CC_COMMAND([for clang],
+ [$conftest_code],
+ [-c],
+ libc_cv_test_clang_19_or_less,
+ [libc_cv_test_clang_19_or_less=yes], [libc_cv_test_clang_19_or_less=no],
+ )
+fi
+LIBC_CONFIG_VAR([have-test-clang-19-or-less], [$libc_cv_test_clang_19_or_less])
+
LIBC_TRY_CC_AND_TEST_CC_OPTION([for -fstack-protector],
[-Werror -fstack-protector],
libc_cv_ssp,