File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ oca_compiler="@opencoarrays_aware_compiler@" # True for GFortran > 5.0.0
6161
6262# Compiler used to build OpenCoarrays; runtime must match compiler used during build
6363cafc=" @Fortran_COMPILER@"
64- if [[ " ${cafc} " == @* @ ]]; then
64+ if [[ " ${cafc} " == @* @ || -z " ${cafc} " ]]; then
6565 cafc=gfortran
6666fi
6767caf_mod_dir=" @CAF_MODDIR@" # location of extensions module, needed for non-OCA compilers
@@ -176,7 +176,7 @@ __only_compiling () {
176176substitute_lib () {
177177 # Try to substitute a shared or static library if requested library is missing
178178 # Some package managers only install dynamic or static libs
179- if ! [[ -f " ${1} " ]] ; then
179+ if ! [[ -f " ${1} " && " ${1} " = * . * ]] ; then
180180 case " ${1##* .} " in
181181 a|lib)
182182 for suff in so dylib dll ; do
@@ -370,7 +370,7 @@ if "${cafc}" "${compiler_args[@]}" ; then
370370 exit $?
371371else
372372 return_code=$?
373- echo " Error: comand :" >&2
373+ echo " Error: command :" >&2
374374 echo " \` ${cafc} ${compiler_args[*]} \` " >&2
375375 echo " failed to compile." >&2
376376 exit " ${return_code} "
You can’t perform that action at this time.
0 commit comments