pmix: add option for toggling pmi backwards compatibility (#15838)
* Add option for toggling pmi backwards compatibility * Remove trailing whitespace
This commit is contained in:
parent
1d14f74d19
commit
1662c3581b
1 changed files with 9 additions and 0 deletions
|
@ -50,6 +50,10 @@ class Pmix(AutotoolsPackage):
|
||||||
depends_on('libevent@2.0.20:2.0.22,2.1.8')
|
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:')
|
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):
|
def configure_args(self):
|
||||||
|
|
||||||
spec = self.spec
|
spec = self.spec
|
||||||
|
@ -58,6 +62,11 @@ def configure_args(self):
|
||||||
'--enable-static'
|
'--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
|
# libevent support
|
||||||
config_args.append(
|
config_args.append(
|
||||||
'--with-libevent={0}'.format(spec['libevent'].prefix))
|
'--with-libevent={0}'.format(spec['libevent'].prefix))
|
||||||
|
|
Loading…
Reference in a new issue