gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 198/254: curl-compilers.m4: fix compiler_num for cl


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 198/254: curl-compilers.m4: fix compiler_num for clang
Date: Sat, 17 Jun 2017 16:53:50 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.54.1
in repository gnurl.

commit 5598b0bd63f690c151074494ce47ef872f004ab4
Author: Marcel Raad <address@hidden>
AuthorDate: Wed May 31 22:21:42 2017 +0200

    curl-compilers.m4: fix compiler_num for clang
    
    "clang -dumpversion" always returns "4.2.1", the GCC version that clang
    was initially compatible to. Use "clang -v" instead, which returns the
    actual clang version.
    
    Fixes https://github.com/curl/curl/issues/1522
    Closes https://github.com/curl/curl/pull/1523
---
 m4/curl-compilers.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4
index 673f64097..dcca88493 100644
--- a/m4/curl-compilers.m4
+++ b/m4/curl-compilers.m4
@@ -84,7 +84,7 @@ AC_DEFUN([CURL_CHECK_COMPILER_CLANG], [
   if test "$curl_cv_have_def___clang__" = "yes"; then
     AC_MSG_RESULT([yes])
     compiler_id="CLANG"
-    clangver=`$CC -dumpversion`
+    clangver=`$CC -v 2>&1 | grep version | sed "s/.*version 
\([0-9]*\.[0-9]*\).*/\1/"`
     clangvhi=`echo $clangver | cut -d . -f1`
     clangvlo=`echo $clangver | cut -d . -f2`
     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]