mirror of
https://github.com/OpenMathLib/OpenBLAS
synced 2026-06-15 07:51:43 +08:00
Merge pull request #5475 from martin-frbg/issue5424
Fix Fortran compiler autodetection in the presence of compiler arguments
This commit is contained in:
6
f_check
6
f_check
@@ -30,9 +30,11 @@ nofortran=0
|
||||
shift 2
|
||||
compiler="$*"
|
||||
compiler_bin="$1"
|
||||
shift
|
||||
compiler_args="$*"
|
||||
|
||||
# f77 is too ambiguous
|
||||
[ "$compiler" = "f77" ] && compiler=''
|
||||
[ "$compiler_bin" = "f77" ] && compiler=''
|
||||
|
||||
path=`split "$PATH" ':'`
|
||||
|
||||
@@ -50,7 +52,7 @@ if [ -z "$compiler" ]; then
|
||||
for list in $lists; do
|
||||
for p in $path; do
|
||||
if [ -x "$p/$list" ]; then
|
||||
compiler=$list
|
||||
compiler="$list $compiler_args"
|
||||
compiler_bin=$list
|
||||
break 2
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user