Skip to content

Commit 6641093

Browse files
committed
fix error in CPU autodetect message
This should fix an error message displayed if the GNU compiler is used, but gfortran is not a valid compiler. I don't see a downside to this change because we already make sure FVERSION is set to GNU. Fixes #302.
1 parent 2a2dddd commit 6641093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ then
752752
fi
753753
FFLAGS[0]="${OPT_FLAGS} -march=${opt}"
754754
if [[ "$opt" == "native" && $FVERSION == "GNU" ]]; then
755-
echo "CPU autodetect result: $(gfortran -march=native -Q --help=target|grep '^\s\+-march'|awk '{print $2}')"
755+
echo "CPU autodetect result: $($FC -march=native -Q --help=target|grep '^\s\+-march'|awk '{print $2}')"
756756
fi
757757
break
758758
done

0 commit comments

Comments
 (0)