Fix PGI version detection: 17.4-0 -> 17.4 (#4251)

This commit is contained in:
Adam J. Stewart 2017-05-24 06:57:31 -05:00 committed by GitHub
parent 0932b16d4e
commit 315bda3487

View File

@ -77,4 +77,4 @@ def default_version(cls, comp):
on PowerPC.
"""
return get_compiler_version(
comp, '-V', r'pg[^ ]* ([0-9.-]+) [^ ]+ target on ')
comp, '-V', r'pg[^ ]* ([0-9.]+)-[0-9]+ [^ ]+ target on ')