Skip to content

Commit

Permalink
Fix PGI version detection: 17.4-0 -> 17.4 (spack#4251)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart authored May 24, 2017
1 parent 0932b16 commit 315bda3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spack/spack/compilers/pgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ')

0 comments on commit 315bda3

Please sign in to comment.