summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2017-05-08 00:04:52 -0500
committerbecker33 <becker33@llnl.gov>2017-05-07 22:04:52 -0700
commitcf93f49462a319be4d6b6f263725297686612299 (patch)
treef81cdc0429bea14b3f9a36ffdbba32eb05a1fa4b /lib
parent4e44d39f1a65b3fd25929d3f9be6441888789846 (diff)
downloadspack-cf93f49462a319be4d6b6f263725297686612299.tar.gz
spack-cf93f49462a319be4d6b6f263725297686612299.tar.bz2
spack-cf93f49462a319be4d6b6f263725297686612299.tar.xz
spack-cf93f49462a319be4d6b6f263725297686612299.zip
Fix PGI compiler detection on PowerPC (#4150)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/compilers/pgi.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/spack/spack/compilers/pgi.py b/lib/spack/spack/compilers/pgi.py
index 146c153041..ed8bad1a9b 100644
--- a/lib/spack/spack/compilers/pgi.py
+++ b/lib/spack/spack/compilers/pgi.py
@@ -61,12 +61,20 @@ class Pgi(Compiler):
@classmethod
def default_version(cls, comp):
- """The '-V' option works for all the PGI compilers.
+ """The ``-V`` option works for all the PGI compilers.
Output looks like this::
pgcc 15.10-0 64-bit target on x86-64 Linux -tp sandybridge
The Portland Group - PGI Compilers and Tools
Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
+
+ on x86-64, and::
+
+ pgcc 17.4-0 linuxpower target on Linuxpower
+ PGI Compilers and Tools
+ Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
+
+ on PowerPC.
"""
return get_compiler_version(
- comp, '-V', r'pg[^ ]* ([^ ]+) \d\d\d?-bit target')
+ comp, '-V', r'pg[^ ]* ([0-9.-]+) [^ ]+ target on ')