summaryrefslogtreecommitdiffstats
path: root/config/intel-flags
diff options
context:
space:
mode:
Diffstat (limited to 'config/intel-flags')
-rw-r--r--config/intel-flags2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/intel-flags b/config/intel-flags
index e67328c..f5e0348 100644
--- a/config/intel-flags
+++ b/config/intel-flags
@@ -15,7 +15,7 @@ if test X = "X$cc_flags_set"; then
cc_version="`$CC $CFLAGS -V 2>&1 |grep '^Intel'`"
if test X != "X$cc_version"; then
cc_vendor=icc
- cc_version="`$CC $CFLAGS --version 2>&1`"
+ cc_version=`echo $cc_version |sed 's/.*Version \([-a-z0-9\.\-]*\).*/\1/'`
echo "compiler '$CC' is Intel $cc_vendor-$cc_version"
# Some version numbers