From 1662c3581bb8e07a4a59841b31354877b24ed7c9 Mon Sep 17 00:00:00 2001 From: Carson Woods Date: Thu, 2 Apr 2020 22:09:33 -0400 Subject: [PATCH] pmix: add option for toggling pmi backwards compatibility (#15838) * Add option for toggling pmi backwards compatibility * Remove trailing whitespace --- var/spack/repos/builtin/packages/pmix/package.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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 @@ def configure_args(self): '--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))