public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Pranav Kant <pranavk@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc/google/grte/v5-2.27/master] configure: Use same pattern to find headers for clang
Date: Tue, 14 Nov 2023 18:49:55 +0000 (GMT)	[thread overview]
Message-ID: <20231114184955.C90443858C33@sourceware.org> (raw)

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)"

                 reply	other threads:[~2023-11-14 18:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231114184955.C90443858C33@sourceware.org \
    --to=pranavk@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).