From a9f91c1b993895addc2319a6d6211a3c6b0e756e Mon Sep 17 00:00:00 2001 From: schnetter Date: Tue, 10 Jun 2008 21:40:59 +0000 Subject: 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 --- lib/make/known-architectures/linux | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/make') 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 -- cgit v1.2.3