public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/google/grte/v5-2.27/master] configure: Use same pattern to find headers for clang
@ 2023-11-14 18:49 Pranav Kant
  0 siblings, 0 replies; only message in thread
From: Pranav Kant @ 2023-11-14 18:49 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=bade6276d16523f81a1dedf22e591730592f15d6

commit bade6276d16523f81a1dedf22e591730592f15d6
Author: Pranav Kant <prka@google.com>
Date:   Wed Sep 27 18:55:40 2023 +0000

    configure: Use same pattern to find headers for clang

Diff:
---
 configure | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/configure b/configure
index 447318e678..4f7b42a319 100755
--- a/configure
+++ b/configure
@@ -5379,17 +5379,10 @@ fi
 if test -n "$CXX"; then
   # In theory the clang and gcc regexes can be merged, but the
   # result is incomprehensible.
-  if test "$with_clang" != no; then
-  find_cxx_header () {
-    echo "#include <$1>" | $CXX -M -MP -x c++ - 2>/dev/null \
-	 | sed -n "\,^[o.-]*[ :] /.*/$1 [\]$,{s,^[o.-]*[ :] /,/,;s/ [\]$//;p}"
-  }
-  else
   find_cxx_header () {
     echo "#include <$1>" | $CXX -M -MP -x c++ - 2>/dev/null \
 	 | sed -n "\,$1:,{s/:\$//;p}"
   }
-  fi
   CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)"
   CXX_CMATH_HEADER="$(find_cxx_header cmath)"
   CXX_BITS_STD_ABS_H="$(find_cxx_header bits/std_abs.h)"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-14 18:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-14 18:49 [glibc/google/grte/v5-2.27/master] configure: Use same pattern to find headers for clang Pranav Kant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).