summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authoreklee15 <eunkyung.lee@us.ibm.com>2017-05-26 23:07:24 -0400
committerAdam J. Stewart <ajstewart426@gmail.com>2017-05-26 22:07:24 -0500
commitc0fff6722dadfa7ef576d3bcc815f98ce33a7d03 (patch)
tree785cd08f8cc37aabddc7605c6f50f25aff1c0f97 /var
parenta9feeefdb93c7766d02e264bbdd7f070c2d6ec83 (diff)
downloadspack-c0fff6722dadfa7ef576d3bcc815f98ce33a7d03.tar.gz
spack-c0fff6722dadfa7ef576d3bcc815f98ce33a7d03.tar.bz2
spack-c0fff6722dadfa7ef576d3bcc815f98ce33a7d03.tar.xz
spack-c0fff6722dadfa7ef576d3bcc815f98ce33a7d03.zip
added -c11 flag for pgi compiler for TSL (#4367)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/parmetis/package.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/parmetis/package.py b/var/spack/repos/builtin/packages/parmetis/package.py
index b07c796dd7..c66829f94e 100644
--- a/var/spack/repos/builtin/packages/parmetis/package.py
+++ b/var/spack/repos/builtin/packages/parmetis/package.py
@@ -70,7 +70,9 @@ class Parmetis(Package):
'-DGKLIB_PATH:PATH=%s/GKlib' % spec['metis'].prefix.include,
'-DMETIS_PATH:PATH=%s' % spec['metis'].prefix,
'-DCMAKE_C_COMPILER:STRING=%s' % spec['mpi'].mpicc,
- '-DCMAKE_CXX_COMPILER:STRING=%s' % spec['mpi'].mpicxx
+ '-DCMAKE_CXX_COMPILER:STRING=%s' % spec['mpi'].mpicxx,
+ '-DCMAKE_C_FLAGS:STRING=%s' % (
+ '-c11' if '%pgi' in spec else ''),
])
if '+shared' in spec: