summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorCarson Woods <carsonwoods@users.noreply.github.com>2020-04-02 22:09:33 -0400
committerGitHub <noreply@github.com>2020-04-02 21:09:33 -0500
commit1662c3581bb8e07a4a59841b31354877b24ed7c9 (patch)
tree10d9edf2c00703d0bf9587a165612be4afc0dc79 /var
parent1d14f74d197e9851ac56fb6edce17b4610bad0d1 (diff)
downloadspack-1662c3581bb8e07a4a59841b31354877b24ed7c9.tar.gz
spack-1662c3581bb8e07a4a59841b31354877b24ed7c9.tar.bz2
spack-1662c3581bb8e07a4a59841b31354877b24ed7c9.tar.xz
spack-1662c3581bb8e07a4a59841b31354877b24ed7c9.zip
pmix: add option for toggling pmi backwards compatibility (#15838)
* Add option for toggling pmi backwards compatibility * Remove trailing whitespace
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/pmix/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pmix/package.py b/var/spack/repos/builtin/packages/pmix/package.py
index fb4e37e572..2cb5126b53 100644
--- a/var/spack/repos/builtin/packages/pmix/package.py
+++ b/var/spack/repos/builtin/packages/pmix/package.py
@@ -50,6 +50,10 @@ class Pmix(AutotoolsPackage):
depends_on('libevent@2.0.20:2.0.22,2.1.8')
depends_on('hwloc@1.11.0:1.11.99,2.0.1:', when='@3.0.0:')
+ variant('pmi_backwards_compatibility',
+ default=True,
+ description="Toggle pmi backwards compatibility")
+
def configure_args(self):
spec = self.spec
@@ -58,6 +62,11 @@ class Pmix(AutotoolsPackage):
'--enable-static'
]
+ if '+pmi_backwards_compatibility' in self.spec:
+ config_args.append('--enable-pmi-backward-compatibility')
+ else:
+ config_args.append('--disable-pmi-backward-compatibility')
+
# libevent support
config_args.append(
'--with-libevent={0}'.format(spec['libevent'].prefix))