gfortran version detection brokenon debian.

This commit is contained in:
Todd Gamblin 2014-09-27 16:19:56 -07:00
parent 63292c5826
commit 5cc508393a

View file

@ -56,7 +56,7 @@ def fc_version(cls, fc):
return get_compiler_version(
fc, '-dumpversion',
# older gfortran versions don't have simple dumpversion output.
r'(?:GNU Fortran \(GCC\))?(\d+\.\d+\.\d+)')
r'(?:GNU Fortran \(GCC\))?(\d+\.\d+(?:\.\d+)?)')
@classmethod