summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/linux-gnulibc113
1 files changed, 6 insertions, 7 deletions
diff --git a/config/linux-gnulibc1 b/config/linux-gnulibc1
index 055b075..a6f81ff 100644
--- a/config/linux-gnulibc1
+++ b/config/linux-gnulibc1
@@ -235,14 +235,8 @@ case $CC in
;;
*clang*)
- # clang -v will return version number following "clang" on Linux machines,
- # but on Macs the version number will follow "Apple LLVM version"
- cc_version_info="`$CC $CFLAGS $H5_CFLAGS -v 2>&1 |\
+ cc_version_info="`$CC $CFLAGS $H5_CFLAGS --version 2>&1 |\
grep 'clang version' | sed 's/.*clang version \([-a-z0-9\.]*\).*/\1/'`"
- else
- cc_version_info="`$CC $CFLAGS $H5_CFLAGS -v 2>&1 |\
- grep 'Apple LLVM version' | sed 's/.*Apple LLVM version \([-a-z0-9\.]*\).*/\1/'`"
- fi
;;
*)
@@ -339,6 +333,11 @@ case $CXX in
cxx_version_info=`echo $cxx_version_info`
;;
+ *clang++*)
+ cxx_version_info="`$CXX $CXXFLAGS $H5_CXXFLAGS --version 2>&1 |\
+ grep 'clang version' | sed 's/.*clang version \([-a-z0-9\.]*\).*/\1/'`"
+ ;;
+
*)
echo "No match to get cxx_version_info for $CXX"
;;