Move Cray case after GNU as Cray builds of gfortran have both names in the version string

This commit is contained in:
Martin Kroeker 2022-09-30 11:58:15 +02:00 committed by GitHub
parent 5e78493d95
commit 79d842047a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -76,11 +76,6 @@ if ($compiler eq "") {
$vendor = FUJITSU; $vendor = FUJITSU;
$openmp = "-Kopenmp"; $openmp = "-Kopenmp";
} elsif ($data =~ /Cray/) {
$vendor = CRAY;
$openmp = "-fopenmp";
} elsif ($data =~ /GNU/ || $data =~ /GCC/ ) { } elsif ($data =~ /GNU/ || $data =~ /GCC/ ) {
$data =~ s/\(+.*?\)+//g; $data =~ s/\(+.*?\)+//g;
@ -106,6 +101,10 @@ if ($compiler eq "") {
$openmp = ""; $openmp = "";
} }
} }
} elsif ($data =~ /Cray/) {
$vendor = CRAY;
$openmp = "-fopenmp";
} }