mirror of git://sourceware.org/git/glibc.git
configure: remove overly restrictive check for clang
The clang support is still experimental and not all testcase build or run correctly. Only clang 18 and onwards is supported and only for x86_64-linux-gnu and aarch64-linux-gnu. Reviewed-by: Collin Funk <collin.funk1@gmail.com>
This commit is contained in:
parent
413d399156
commit
28fc61a743
5
NEWS
5
NEWS
|
|
@ -29,6 +29,11 @@ Major new features:
|
|||
* The ISO C23 functions free_sized and free_aligned_sized are now
|
||||
supported in <stdlib.h>.
|
||||
|
||||
* Experimental support for building with clang has been added. It requires
|
||||
at least clang version 18, aarch64-linux-gnu or x86_64-linux-gnu
|
||||
targets, and libgcc compatible runtime (including libgcc_s.so for
|
||||
pthread cancellation and backtrace runtime support).
|
||||
|
||||
Deprecated and removed features, and other changes affecting compatibility:
|
||||
|
||||
* Support for dumped heaps has been removed - malloc_set_state() now always
|
||||
|
|
|
|||
|
|
@ -5799,7 +5799,7 @@ int
|
|||
main (void)
|
||||
{
|
||||
|
||||
#if !defined __GNUC__ || __GNUC__ < 12 || (__GNUC__ == 12 && __GNUC_MINOR__ < 1)
|
||||
#if (!defined __GNUC__ || __GNUC__ < 12 || (__GNUC__ == 12 && __GNUC_MINOR__ < 1)) && (!defined __clang__ || __clang_major__ < 18)
|
||||
#error insufficient compiler
|
||||
#endif
|
||||
;
|
||||
|
|
|
|||
|
|
@ -585,7 +585,7 @@ AC_CHECK_PROG_VER(BISON, bison, --version,
|
|||
# Require GCC 12.1 to build.
|
||||
AC_CACHE_CHECK([if $CC is sufficient to build libc], libc_cv_compiler_ok, [
|
||||
AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[]], [[
|
||||
#if !defined __GNUC__ || __GNUC__ < 12 || (__GNUC__ == 12 && __GNUC_MINOR__ < 1)
|
||||
#if (!defined __GNUC__ || __GNUC__ < 12 || (__GNUC__ == 12 && __GNUC_MINOR__ < 1)) && (!defined __clang__ || __clang_major__ < 18)
|
||||
#error insufficient compiler
|
||||
#endif]])],
|
||||
[libc_cv_compiler_ok=yes],
|
||||
|
|
|
|||
Loading…
Reference in New Issue