summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2017-05-24 06:57:31 -0500
committerGitHub <noreply@github.com>2017-05-24 06:57:31 -0500
commit315bda3487ca06bdd872efec6349920289bfad64 (patch)
tree16cf431c06e3c88e1f42af67c836a15692b5b3fc
parent0932b16d4ef905508630d5c11d3719b3b08d1b2a (diff)
downloadspack-315bda3487ca06bdd872efec6349920289bfad64.tar.gz
spack-315bda3487ca06bdd872efec6349920289bfad64.tar.bz2
spack-315bda3487ca06bdd872efec6349920289bfad64.tar.xz
spack-315bda3487ca06bdd872efec6349920289bfad64.zip
Fix PGI version detection: 17.4-0 -> 17.4 (#4251)
-rw-r--r--lib/spack/spack/compilers/pgi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/compilers/pgi.py b/lib/spack/spack/compilers/pgi.py
index ed8bad1a9b..cfc3d8ea57 100644
--- a/lib/spack/spack/compilers/pgi.py
+++ b/lib/spack/spack/compilers/pgi.py
@@ -77,4 +77,4 @@ class Pgi(Compiler):
on PowerPC.
"""
return get_compiler_version(
- comp, '-V', r'pg[^ ]* ([0-9.-]+) [^ ]+ target on ')
+ comp, '-V', r'pg[^ ]* ([0-9.]+)-[0-9]+ [^ ]+ target on ')