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
61
61
62
62
# Compiler used to build OpenCoarrays; runtime must match compiler used during build
63
63
cafc=" @Fortran_COMPILER@"
64
- if [[ " ${cafc} " == @* @ ]]; then
64
+ if [[ " ${cafc} " == @* @ || -z " ${cafc} " ]]; then
65
65
cafc=gfortran
66
66
fi
67
67
caf_mod_dir=" @CAF_MODDIR@" # location of extensions module, needed for non-OCA compilers
@@ -176,7 +176,7 @@ __only_compiling () {
176
176
substitute_lib () {
177
177
# Try to substitute a shared or static library if requested library is missing
178
178
# Some package managers only install dynamic or static libs
179
- if ! [[ -f " ${1} " ]] ; then
179
+ if ! [[ -f " ${1} " && " ${1} " = * . * ]] ; then
180
180
case " ${1##* .} " in
181
181
a|lib)
182
182
for suff in so dylib dll ; do
@@ -370,7 +370,7 @@ if "${cafc}" "${compiler_args[@]}" ; then
370
370
exit $?
371
371
else
372
372
return_code=$?
373
- echo " Error: comand :" >&2
373
+ echo " Error: command :" >&2
374
374
echo " \` ${cafc} ${compiler_args[*]} \` " >&2
375
375
echo " failed to compile." >&2
376
376
exit " ${return_code} "
You can’t perform that action at this time.
0 commit comments