From 1d1e181ac73557d4567ac2ec532ea9ac403631d9 Mon Sep 17 00:00:00 2001 From: Muaaz Gul Awan Date: Thu, 16 May 2024 15:39:14 -0700 Subject: [PATCH] Update conv-mach-craype.sh correcting a typo to grab compiler versions and adding a check to prevent the unsupported flags being included when cray ftn compiler is being used --- src/arch/common/conv-mach-craype.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/arch/common/conv-mach-craype.sh b/src/arch/common/conv-mach-craype.sh index b30eba6560..00c2dab537 100644 --- a/src/arch/common/conv-mach-craype.sh +++ b/src/arch/common/conv-mach-craype.sh @@ -1,9 +1,9 @@ -PGCC=`CC -V 2>&1 | grep pgCC` -ICPC=`CC -V 2>&1 | grep Intel` -CLANG=`CC -V 2>&1 | grep 'clang'` -GNU=`CC -V 2>&1 | grep 'g++'` -CCE=`CC -V 2>&1 | grep 'Cray'` +PGCC=`CC -v 2>&1 | grep pgCC` +ICPC=`CC -v 2>&1 | grep Intel` +CLANG=`CC -v 2>&1 | grep 'clang'` +GNU=`CC -v 2>&1 | grep 'g++'` +CCE=`CC -v 2>&1 | grep 'Cray'` CMK_CPP_CHARM="cpp -P" CMK_CPP_C="cc" @@ -133,7 +133,7 @@ CMK_CF90="ftn " CMK_F90LIBS="" fi -if test -n "$GNU" +if test -z "$CCE" then CMK_CF77="$CMK_CF77 -ffree-line-length-none" CMK_CF90="$CMK_CF90 -ffree-line-length-none"