Skip to content
Snippets Groups Projects
Commit c2d56b0b authored by Michael Kuhn's avatar Michael Kuhn Committed by Adam J. Stewart
Browse files

Fix version detection for gcc@8 (#8511)

parent bef60f6d
No related branches found
No related tags found
No related merge requests found
...@@ -132,7 +132,7 @@ def default_version(cls, cc): ...@@ -132,7 +132,7 @@ def default_version(cls, cc):
return 'unknown' return 'unknown'
version = super(Gcc, cls).default_version(cc) version = super(Gcc, cls).default_version(cc)
if version in ['7']: if ver(version) >= ver('7'):
version = get_compiler_version(cc, '-dumpfullversion') version = get_compiler_version(cc, '-dumpfullversion')
return version return version
...@@ -161,7 +161,7 @@ def fc_version(cls, fc): ...@@ -161,7 +161,7 @@ def fc_version(cls, fc):
version = get_compiler_version( version = get_compiler_version(
fc, '-dumpversion', fc, '-dumpversion',
r'(?:GNU Fortran \(GCC\) )?([\d.]+)') r'(?:GNU Fortran \(GCC\) )?([\d.]+)')
if version in ['7']: if ver(version) >= ver('7'):
version = get_compiler_version(fc, '-dumpfullversion') version = get_compiler_version(fc, '-dumpfullversion')
return version return version
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment