summaryrefslogtreecommitdiffstats
path: root/config/gnu-flags
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2019-11-14 15:28:03 (GMT)
committerkmu <kmu@hdfgroup.org>2019-11-14 15:28:03 (GMT)
commit3613ec7296a782c86ea5f0706a5a0cb51602abc9 (patch)
tree9be4fa9e5b48e88f993723daf1b13ebd03219f66 /config/gnu-flags
parentd06474c4e1ba8628f896e57e619d4b142e6ba8b0 (diff)
downloadhdf5-3613ec7296a782c86ea5f0706a5a0cb51602abc9.zip
hdf5-3613ec7296a782c86ea5f0706a5a0cb51602abc9.tar.gz
hdf5-3613ec7296a782c86ea5f0706a5a0cb51602abc9.tar.bz2
let hdf5 pick up the right compiler in Intel environment
Diffstat (limited to 'config/gnu-flags')
-rw-r--r--config/gnu-flags5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/gnu-flags b/config/gnu-flags
index 6355ccf..7a6686e 100644
--- a/config/gnu-flags
+++ b/config/gnu-flags
@@ -29,10 +29,13 @@ if test "X-" = "X-$cc_flags_set"; then
# icc beginning with version 12 includes a "gcc version compatiblilty"
# string, causing the gcc H5_CFLAGS to be erroneously added. The line
# "grep -v 'icc version'" causes the discarding of any output
- # containing 'icc version'. The cc_version for icc is correctly determined
+ # containing 'icc version'. The line "grep -v 'icc.orig version'" causes
+ # the discarding of any output containing 'icc.orig version'.
+ # The cc_version for icc is correctly determined
# and flags added in the intel-flags script.
cc_version="`$CC $CFLAGS $H5_CFLAGS -v 2>&1 | grep -v 'PathScale' |\
grep -v 'icc version' |\
+ grep -v 'icc.orig version' |\
grep 'gcc version' | sed 's/.*gcc version \([-a-z0-9\.]*\).*/\1/'`"
cc_vendor=`echo $cc_version |sed 's/\([a-z]*\).*/\1/'`
cc_version=`echo $cc_version |sed 's/[-a-z]//g'`