pmix: add option for toggling pmi backwards compatibility (#15838)

* Add option for toggling pmi backwards compatibility

* Remove trailing whitespace
This commit is contained in:
Carson Woods 2020-04-02 22:09:33 -04:00 committed by GitHub
parent 1d14f74d19
commit 1662c3581b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))