From 32af3c69cc7b21b0cfb8dfb30b02962a3e384f55 Mon Sep 17 00:00:00 2001 From: tradke Date: Tue, 9 Aug 2005 15:57:06 +0000 Subject: Don't use '-ip' in CXX_OPTIMISE_FLAGS when using Intel icpc 9.0. It has the same bug as 8.1 when compiling C++ code with anonymous namespaces. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4107 17b73243-c579-4c4c-a9d2-2d5706c11dac --- lib/make/known-architectures/linux | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/make') diff --git a/lib/make/known-architectures/linux b/lib/make/known-architectures/linux index 581c82ea..1f079e7b 100644 --- a/lib/make/known-architectures/linux +++ b/lib/make/known-architectures/linux @@ -402,9 +402,10 @@ else else CXX_OPTIMISE_FLAGS='-O3' fi - # Intel 8.1 has a bug when using anonymous namespaces + # Intel 8.1 and 9.0 have a bug when using anonymous namespaces # taking out '-ip' bypasses this optimization bug - if test "`$CXX -V 2>&1 | grep Version | sed 's/.*Version //' | cut -c1-3`" != '8.1'; then + icpc_version=`$CXX -V 2>&1 | grep Version | sed 's/.*Version //' | cut -c1-3` + if test "$icpc_version" != '8.1' -a "$icpc_version" != '9.0'; then CXX_OPTIMISE_FLAGS="$CXX_OPTIMISE_FLAGS -ip" fi fi -- cgit v1.2.3