[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
- [GNUnet-SVN] [gnurl] 201/254: typecheck-gcc.h: check CURLINFO_TLS_SSL_PTR and CURLINFO_TLS_SESSION, (continued)
- [GNUnet-SVN] [gnurl] 201/254: typecheck-gcc.h: check CURLINFO_TLS_SSL_PTR and CURLINFO_TLS_SESSION, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 253/254: release: 7.54.1, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 97/254: docs/opts: 24 more man pages now have examples, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 74/254: testpart: remove _MPRINTF_REPLACE, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 193/254: CURLOPT_FNMATCH_FUNCTION.3: also modified example to avoid fcpp issues, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 222/254: curl_ntlm_core: pass unsigned char to toupper, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 163/254: cmake: fix build on Ubuntu 14.04, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 185/254: build-wolfssl: Sync config with wolfSSL 3.11, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 208/254: test1538: fix typo, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 111/254: curl.1: depend the build on the Makefile.inc too, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 198/254: curl-compilers.m4: fix compiler_num for clang,
gnunet <=
- [GNUnet-SVN] [gnurl] 100/254: curl: remove tool_writeenv.[ch], gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 129/254: mbedtls: Support server renegotiation request, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 157/254: cmake: auto detection of CURL_CA_BUNDLE/CURL_CA_PATH, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 180/254: test557: fix ubsan runtime error due to int left shift, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 213/254: cyassl: define build macros before including ssl.h, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 46/254: examples: fixed too long line and too long string warnings, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 203/254: build: provide easy code coverage measuring, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 248/254: configure: update the copyright year in the output, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 139/254: CURLOPT_HTTPPROXYTUNNEL: clarify, add example, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 67/254: buffer: use data->set.buffer_size instead of BUFSIZE, gnunet, 2017/06/17