diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2008-01-21 14:07:27 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2008-01-21 14:07:27 +0000 |
commit | c3ed4dee129df1ba0701ac1e0dc2a179391a8f2d (patch) | |
tree | f5e038ade4b26da722d776157ad6359459f6362d /lib/make | |
parent | f382b51c870ecc07122c483a50d586566048a3ae (diff) |
fixed Intel C/C++ compiler version check logic
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4443 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make')
-rw-r--r-- | lib/make/known-architectures/linux | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/make/known-architectures/linux b/lib/make/known-architectures/linux index 3f3bd883..605c6e02 100644 --- a/lib/make/known-architectures/linux +++ b/lib/make/known-architectures/linux @@ -349,7 +349,7 @@ else ;; # Intel [ei]cc) - icc_version=`$CC -V 2>&1 | grep Version | sed 's/.*Version //' | cut -c1` + icc_version=`$CC -V 2>&1 | grep Version | sed 's/.*Version //' | cut -f1 -d.` if test "$OPTIMISE" = 'no'; then icc_opt='-O0' else @@ -413,7 +413,7 @@ else CXX_OPTIMISE_FLAGS="$CXX_OPTIMISE_FLAGS -ip" fi fi - icpc_version=`$CXX -V 2>&1 | grep Version | sed 's/.*Version //' | cut -c1` + icpc_version=`echo $icpc_fullversion | cut -f1 -d.` if test $icpc_version -ge 8; then cxx_warn_flags='-Wall -w1 -Wcheck' else |