Skip to content

Commit a84a8a7

Browse files
authored
Merge pull request #3778 from martin-frbg/issue3775
Fix misdetection of gfortran on Cray systems
2 parents 8e85116 + 79d8420 commit a84a8a7

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

f_check

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ else
8282
vendor=FUJITSU
8383
openmp='-Kopenmp'
8484
;;
85-
*Cray*)
86-
vendor=CRAY
87-
openmp='-fopenmp'
88-
;;
8985
*GNU*|*GCC*)
9086

9187
v="${data#*GCC: *\) }"
@@ -117,6 +113,10 @@ else
117113
esac
118114
fi
119115
;;
116+
*Cray*)
117+
vendor=CRAY
118+
openmp='-fopenmp'
119+
;;
120120
*g95*)
121121
vendor=G95
122122
openmp=''

f_check.pl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@
7676
$vendor = FUJITSU;
7777
$openmp = "-Kopenmp";
7878

79-
} elsif ($data =~ /Cray/) {
80-
81-
$vendor = CRAY;
82-
$openmp = "-fopenmp";
83-
8479
} elsif ($data =~ /GNU/ || $data =~ /GCC/ ) {
8580

8681
$data =~ s/\(+.*?\)+//g;
@@ -106,6 +101,10 @@
106101
$openmp = "";
107102
}
108103
}
104+
} elsif ($data =~ /Cray/) {
105+
106+
$vendor = CRAY;
107+
$openmp = "-fopenmp";
109108

110109
}
111110

0 commit comments

Comments
 (0)