File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
prerequisites/install-functions Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,15 @@ build_opencoarrays()
13
13
if [[ -z ${MPIFC:- } || -z ${MPICC:- } ]]; then
14
14
emergency " build_opencoarrays.sh: empty \$ {MPIFC}=${MPIFC:- } or \$ {MPICC}=${MPICC:- } "
15
15
fi
16
- MPIFC_show=` $ MPIFC -show`
17
- MPICC_show=` $ MPICC -show`
18
- if [[ ${MPIFC_show} != * gfortran* || ${MPICC_show} != * gcc* ]]; then
19
- emergency " build_opencoarrays.sh: MPI doesn't wrap gfortran/gcc: \$ {MPIFC_show}=${MPIFC_show} , \$ {MPICC_show}=${MPICC_show} "
20
- fi
16
+ MPIFC_show=( $( $ MPIFC -show) )
17
+ MPICC_show=( $( $ MPICC -show) )
18
+ if [[ " ${MPIFC_show[0]} " != * gfortran* || " ${MPICC_show[0]} " != * gcc* ]]; then
19
+ emergency " build_opencoarrays.sh: MPI doesn't wrap gfortran/gcc: \$ {MPIFC_show}=${MPIFC_show[*] } , \$ {MPICC_show}=${MPICC_show[*] } "
20
+ fi
21
21
# Set FC to the MPI implementation's gfortran command with any preceding path but without any subsequent arguments:
22
- FC=" ${MPIFC_show%% gfortran * } " gfortran
22
+ FC=" ${MPIFC_show[0]} "
23
23
# Set CC to the MPI implementation's gcc command...
24
- CC=" ${MPICC_show%% gcc * } " gcc
24
+ CC=" ${MPICC_show[0]} "
25
25
info " Configuring OpenCoarrays in ${PWD} with the command:"
26
26
info " CC=\" ${CC} \" FC=\" ${FC} \" $CMAKE \" ${opencoarrays_src_dir} \" -DCMAKE_INSTALL_PREFIX=\" ${install_path} \" -DMPI_C_COMPILER=\" ${MPICC} \" -DMPI_Fortran_COMPILER=\" ${MPIFC} \" "
27
27
CC=" ${CC} " FC=" ${FC} " $CMAKE " ${opencoarrays_src_dir} " -DCMAKE_INSTALL_PREFIX=" ${install_path} " -DMPI_C_COMPILER=" ${MPICC} " -DMPI_Fortran_COMPILER=" ${MPIFC} "
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ find_or_install()
266
266
info " $this_script : Checking whether $executable in PATH is version $( ./build.sh -V gcc) or later..."
267
267
$executable -o acceptable_compiler acceptable_compiler.f90 || true ;
268
268
$executable -o print_true print_true.f90 || true ;
269
- if [[ -f ./accepatable_compiler && -f ./print_true ]]; then
269
+ if [[ -f ./acceptable_compiler && -f ./print_true ]]; then
270
270
is_true=$( ./print_true)
271
271
acceptable=$( ./acceptable_compiler)
272
272
rm acceptable_compiler print_true
You can’t perform that action at this time.
0 commit comments