diff options
author | kmu <kmu@hdfgroup.org> | 2019-11-14 15:28:03 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:20:23 (GMT) |
commit | 540e50df2898be8cacc151f9e2930d250337a62f (patch) | |
tree | a5cd736b43628131503daa906f7c054443eab911 /config/gnu-flags | |
parent | c1f6c50b356f087920fabead550a0625935d634a (diff) | |
download | hdf5-540e50df2898be8cacc151f9e2930d250337a62f.zip hdf5-540e50df2898be8cacc151f9e2930d250337a62f.tar.gz hdf5-540e50df2898be8cacc151f9e2930d250337a62f.tar.bz2 |
let hdf5 pick up the right compiler in Intel environment
Diffstat (limited to 'config/gnu-flags')
-rw-r--r-- | config/gnu-flags | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/gnu-flags b/config/gnu-flags index 2758681..ef6dd25 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'` |