diff options
author | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2008-06-10 21:40:59 +0000 |
---|---|---|
committer | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2008-06-10 21:40:59 +0000 |
commit | a9f91c1b993895addc2319a6d6211a3c6b0e756e (patch) | |
tree | 5c9d42820f41fbcd7d379bb96ffa7ddd922ac273 /lib/make/known-architectures/linux | |
parent | e11a9ce616d42f8dda0188acbe27a548e0a93e19 (diff) |
Correct a bash warning about -ge being used as a unary operator
because one of the arguments is undefined.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4492 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/known-architectures/linux')
-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 af16b4b8..0f3537df 100644 --- a/lib/make/known-architectures/linux +++ b/lib/make/known-architectures/linux @@ -400,6 +400,8 @@ else else : ${CXXFLAGS='-restrict'} fi + icpc_fullversion=`$CXX -V 2>&1 | grep Version | sed 's/.*Version //' | cut -c1-3` + icpc_version=`echo $icpc_fullversion | cut -f1 -d.` if test -z "$CXX_OPTIMISE_FLAGS"; then if test "$host_cpu" = 'ia64' -o "$host_cpu" = 'x86_64'; then CXX_OPTIMISE_FLAGS='-O2' @@ -408,12 +410,10 @@ else fi # Intel 8.1 and 9.0 have a bug when using anonymous namespaces # taking out '-ip' bypasses this optimization bug - icpc_fullversion=`$CXX -V 2>&1 | grep Version | sed 's/.*Version //' | cut -c1-3` if test "$icpc_fullversion" != '8.1' -a "$icpc_fullversion" != '9.0'; then CXX_OPTIMISE_FLAGS="$CXX_OPTIMISE_FLAGS -ip" fi fi - icpc_version=`echo $icpc_fullversion | cut -f1 -d.` if test $icpc_version -ge 8; then cxx_warn_flags='-Wall -w1 -Wcheck' else |