summaryrefslogtreecommitdiffstats
path: root/config/gnu-flags
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2020-02-27 23:06:41 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:31:55 (GMT)
commiteeb8a5a754f1a226d7ab609343b8c57238afee2b (patch)
tree9ec39e3a2ac0e72e052a4bcb4fe130a0cfb9663c /config/gnu-flags
parentd40e543e638af7080d2ae60175ae0a02365d35cf (diff)
downloadhdf5-eeb8a5a754f1a226d7ab609343b8c57238afee2b.zip
hdf5-eeb8a5a754f1a226d7ab609343b8c57238afee2b.tar.gz
hdf5-eeb8a5a754f1a226d7ab609343b8c57238afee2b.tar.bz2
Modfy expression to match mpicc build with Intel as intel compiler, not
gcc.
Diffstat (limited to 'config/gnu-flags')
-rw-r--r--config/gnu-flags2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/gnu-flags b/config/gnu-flags
index a2ad8df..6a159d8 100644
--- a/config/gnu-flags
+++ b/config/gnu-flags
@@ -47,7 +47,7 @@ if test "X-" = "X-$cc_flags_set"; then
# containing 'icc 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.*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'`