Skip to content

Commit 5c4bd62

Browse files
author
Damian Rouson
authored
Merge pull request #724 from sourceryinstitute/update-installer
fix(installer): handle mpifort invoking f95
2 parents 21337ba + 13de784 commit 5c4bd62

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

prerequisites/install-functions/build_opencoarrays.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ build_opencoarrays()
1919
MPIFC_show=($("$MPIFC" -show))
2020
MPICC_show=($("$MPICC" -show))
2121
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
2326
fi
2427
if [[ -z "${OPENCOARRAYS_DEVELOPER:-}" ]]; then
2528
# We should examine the value too, but CMake has many ways of saying "true"

prerequisites/install-functions/report_results.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
report_results()
33
{
44
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}}"
106

117
fully_qualified_MPIFC="$(type -P "${MPIFC}")"
128
mpi_install_root="${fully_qualified_MPIFC%bin/mpifort*}"

0 commit comments

Comments
 (0)