File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
prerequisites/install-functions Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ build_opencoarrays()
19
19
MPIFC_show=($( " $MPIFC " -show) )
20
20
MPICC_show=($( " $MPICC " -show) )
21
21
if [[ " ${MPIFC_show[0]} " != * gfortran* ]]; then
22
- emergency " build_opencoarrays.sh: MPI doesn't wrap gfortran/gcc: \$ {MPIFC_show}=${MPIFC_show[*]} "
22
+ export fortran_compiler_identity=" $( ${MPIFC_show[0]} --version) "
23
+ if [[ $fortran_compiler_identity != " GNU Fortran" * ]]; then
24
+ emergency " build_opencoarrays.sh: MPI doesn't wrap gfortran/gcc: \$ {MPIFC_show}=${MPIFC_show[*]} "
25
+ fi
23
26
fi
24
27
if [[ -z " ${OPENCOARRAYS_DEVELOPER:- } " ]]; then
25
28
# We should examine the value too, but CMake has many ways of saying "true"
Original file line number Diff line number Diff line change 2
2
report_results ()
3
3
{
4
4
fully_qualified_FC=" $( type -P " ${FC} " ) "
5
- if [[ ${fully_qualified_FC} != * gfortran* ]]; then
6
- emergency " report_results.sh: non-gfortran compiler: \$ {fully_qualified_FC}=${fully_qualified_FC} "
7
- fi
8
- # Set path_to_FC fully-qualified gfortran location
9
- compiler_install_root=" ${fully_qualified_FC% bin/ gfortran* } "
5
+ compiler_install_root=" ${fully_qualified_FC% bin/ ${FC} } "
10
6
11
7
fully_qualified_MPIFC=" $( type -P " ${MPIFC} " ) "
12
8
mpi_install_root=" ${fully_qualified_MPIFC% bin/ mpifort* } "
You can’t perform that action at this time.
0 commit comments